You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the quick reply in email. I tried moveTo(int) before but it didn't work. The file still shows the first line.
CodeArea codeArea = new CodeArea();
codeArea.setParagraphGraphicFactory(LineNumberFactory.get(codeArea));
codeArea.appendText(content);
codeArea.setWrapText(true);
codeArea.moveTo(1000);
Scene scene1 = new Scene(codeArea, 800, 600);
Stage stage = new Stage();
stage.setTitle(objects[0].toString());
stage.setScene(scene1);
stage.show();
Also, the moveTo() method seems like only accept int value but codeArea.position(x, 0) gives a Position type value. Is there any other way to jump to a specific line?
The text was updated successfully, but these errors were encountered:
mellwa
changed the title
Code
CodeArea Jump to a Specific Line
Nov 13, 2015
Hi Tomas,
Thank you for the quick reply in email. I tried moveTo(int) before but it didn't work. The file still shows the first line.
CodeArea codeArea = new CodeArea();
codeArea.setParagraphGraphicFactory(LineNumberFactory.get(codeArea));
codeArea.appendText(content);
codeArea.setWrapText(true);
codeArea.moveTo(1000);
Also, the moveTo() method seems like only accept int value but codeArea.position(x, 0) gives a Position type value. Is there any other way to jump to a specific line?
The text was updated successfully, but these errors were encountered: