UI defaults inspector:

- add placeholder text to filter field
- fixed menu item text in Demo
This commit is contained in:
Karl Tauber
2020-09-15 17:52:34 +02:00
parent 549832ba96
commit 5643546117
4 changed files with 6 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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 ) )
} )
} )

View File

@@ -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));

View File

@@ -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
} )