1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

Try to fix RSyntaxTextArea issues

This commit is contained in:
Reinhard Pointner 2016-08-10 00:08:54 +08:00
parent bddf3e516b
commit 8b4d963e5a

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