Try to fix RSyntaxTextArea issues

This commit is contained in:
Reinhard Pointner 2016-08-10 00:08:54 +08:00
parent bddf3e516b
commit 8b4d963e5a
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ public class FormatDialog extends JDialog {
public void setFormatCode(String text) {
editor.setText(text);
editor.setEditable(true);
editor.requestFocusInWindow();
editor.scrollRectToVisible(new Rectangle(0, 0)); // reset scroll
editor.setCaretPosition(text.length()); // scroll to end of format