mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
TextField: added "clear" button to theme editor find/replace and to UI defaults inspector
This commit is contained in:
@@ -304,6 +304,7 @@ class FlatFindReplaceBar
|
||||
//---- findField ----
|
||||
findField.setColumns(16);
|
||||
findField.setSelectAllOnFocusPolicy(FlatTextField.SelectAllOnFocusPolicy.always);
|
||||
findField.setShowClearButton(true);
|
||||
findField.addActionListener(e -> find());
|
||||
add(findField, "cell 1 0");
|
||||
|
||||
@@ -365,6 +366,7 @@ class FlatFindReplaceBar
|
||||
//---- replaceField ----
|
||||
replaceField.setColumns(16);
|
||||
replaceField.setSelectAllOnFocusPolicy(FlatTextField.SelectAllOnFocusPolicy.always);
|
||||
replaceField.setShowClearButton(true);
|
||||
add(replaceField, "cell 1 1");
|
||||
|
||||
//======== toolBar1 ========
|
||||
|
||||
@@ -22,6 +22,7 @@ new FormModel {
|
||||
name: "findField"
|
||||
"columns": 16
|
||||
"selectAllOnFocusPolicy": enum com.formdev.flatlaf.extras.components.FlatTextField$SelectAllOnFocusPolicy always
|
||||
"showClearButton": true
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "find", false ) )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 0"
|
||||
@@ -91,6 +92,7 @@ new FormModel {
|
||||
name: "replaceField"
|
||||
"columns": 16
|
||||
"selectAllOnFocusPolicy": enum com.formdev.flatlaf.extras.components.FlatTextField$SelectAllOnFocusPolicy always
|
||||
"showClearButton": true
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 1"
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user