When editing Label components, default focus to the text editor

This commit is contained in:
Bane Stojkovic
2023-05-19 16:31:44 +02:00
parent 1417aaed0b
commit 7a4b77767d
2 changed files with 11 additions and 1 deletions
@@ -88,5 +88,11 @@ public class MultiLineStringEditor extends JScrollPane {
property.setChanged(true);
getTextArea().setBackground(oldBg);
property.setValue(getTextArea().getText());
}
@Override
public boolean requestFocusInWindow() {
getTextArea().selectAll();
return getTextArea().requestFocusInWindow();
}
}