mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cosmetics Make answer placeholder text selected on focus
This commit is contained in:
+8
-1
@@ -44,6 +44,14 @@ public class CCCreateAnswerPlaceholderPanel {
|
||||
}
|
||||
|
||||
myPlaceholderTextArea.setBorder(BorderFactory.createLineBorder(JBColor.border()));
|
||||
myPlaceholderTextArea.setText(placeholderText);
|
||||
myPlaceholderTextArea.addFocusListener(new FocusAdapter() {
|
||||
@Override
|
||||
public void focusGained(FocusEvent e) {
|
||||
myPlaceholderTextArea.selectAll();
|
||||
}
|
||||
});
|
||||
|
||||
myHintsPanel.setBorder(BorderFactory.createLineBorder(JBColor.border()));
|
||||
((GridLayoutManager)myHintsPanel.getLayout()).setHGap(1);
|
||||
|
||||
@@ -52,7 +60,6 @@ public class CCCreateAnswerPlaceholderPanel {
|
||||
|
||||
actionsPanel.add(createHintToolbarComponent(), BorderLayout.WEST);
|
||||
showHint();
|
||||
myPlaceholderTextArea.setText(placeholderText);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user