mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
UI defaults inspector:
- add placeholder text to filter field - fixed menu item text in Demo
This commit is contained in:
@@ -600,7 +600,7 @@ class DemoFrame
|
||||
optionsMenu.add(showHintsMenuItem);
|
||||
|
||||
//---- showUIDefaultsInspectorMenuItem ----
|
||||
showUIDefaultsInspectorMenuItem.setText("Show UIDefaults Inspector");
|
||||
showUIDefaultsInspectorMenuItem.setText("Show UI Defaults Inspector");
|
||||
showUIDefaultsInspectorMenuItem.addActionListener(e -> showUIDefaultsInspector());
|
||||
optionsMenu.add(showUIDefaultsInspectorMenuItem);
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ new FormModel {
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JMenuItem" ) {
|
||||
name: "showUIDefaultsInspectorMenuItem"
|
||||
"text": "Show UIDefaults Inspector"
|
||||
"text": "Show UI Defaults Inspector"
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "showUIDefaultsInspector", false ) )
|
||||
} )
|
||||
} )
|
||||
|
||||
@@ -408,6 +408,9 @@ public class FlatUIDefaultsInspector
|
||||
filterPanel.add(flterLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
|
||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||
new Insets(0, 0, 0, 10), 0, 0));
|
||||
|
||||
//---- filterField ----
|
||||
filterField.putClientProperty("JTextField.placeholderText", "enter one or more filter strings, separated by space characters");
|
||||
filterPanel.add(filterField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
|
||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||
new Insets(0, 0, 0, 10), 0, 0));
|
||||
|
||||
@@ -31,6 +31,7 @@ new FormModel {
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "filterField"
|
||||
"$client.JTextField.placeholderText": "enter one or more filter strings, separated by space characters"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
|
||||
"gridx": 1
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user