Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Tab createNewTab()
- {
- Tab tab = new Tab();
- VBox vBox = new VBox();
- RSyntaxTextArea textArea = new RSyntaxTextArea(20, 30);
- textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
- textArea.setCodeFoldingEnabled(true);
- RTextScrollPane scrollPane = new RTextScrollPane(textArea);
- SwingNode swingNode = new SwingNode();
- swingNode.setContent(scrollPane);
- vBox.getChildren().add(swingNode);
- tab.setContent(vBox);
- return tab;
- }
Advertisement
Add Comment
Please, Sign In to add comment