Try to fix RSyntaxTextArea issues
This commit is contained in:
parent
bddf3e516b
commit
8b4d963e5a
|
@ -313,6 +313,7 @@ public class FormatDialog extends JDialog {
|
||||||
|
|
||||||
public void setFormatCode(String text) {
|
public void setFormatCode(String text) {
|
||||||
editor.setText(text);
|
editor.setText(text);
|
||||||
|
editor.setEditable(true);
|
||||||
editor.requestFocusInWindow();
|
editor.requestFocusInWindow();
|
||||||
editor.scrollRectToVisible(new Rectangle(0, 0)); // reset scroll
|
editor.scrollRectToVisible(new Rectangle(0, 0)); // reset scroll
|
||||||
editor.setCaretPosition(text.length()); // scroll to end of format
|
editor.setCaretPosition(text.length()); // scroll to end of format
|
||||||
|
|
Loading…
Reference in New Issue