mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +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);
|
optionsMenu.add(showHintsMenuItem);
|
||||||
|
|
||||||
//---- showUIDefaultsInspectorMenuItem ----
|
//---- showUIDefaultsInspectorMenuItem ----
|
||||||
showUIDefaultsInspectorMenuItem.setText("Show UIDefaults Inspector");
|
showUIDefaultsInspectorMenuItem.setText("Show UI Defaults Inspector");
|
||||||
showUIDefaultsInspectorMenuItem.addActionListener(e -> showUIDefaultsInspector());
|
showUIDefaultsInspectorMenuItem.addActionListener(e -> showUIDefaultsInspector());
|
||||||
optionsMenu.add(showUIDefaultsInspectorMenuItem);
|
optionsMenu.add(showUIDefaultsInspectorMenuItem);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JMenuItem" ) {
|
add( new FormComponent( "javax.swing.JMenuItem" ) {
|
||||||
name: "showUIDefaultsInspectorMenuItem"
|
name: "showUIDefaultsInspectorMenuItem"
|
||||||
"text": "Show UIDefaults Inspector"
|
"text": "Show UI Defaults Inspector"
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "showUIDefaultsInspector", false ) )
|
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,
|
filterPanel.add(flterLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
|
||||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||||
new Insets(0, 0, 0, 10), 0, 0));
|
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,
|
filterPanel.add(filterField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
|
||||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||||
new Insets(0, 0, 0, 10), 0, 0));
|
new Insets(0, 0, 0, 10), 0, 0));
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ new FormModel {
|
|||||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) )
|
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) )
|
||||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||||
name: "filterField"
|
name: "filterField"
|
||||||
|
"$client.JTextField.placeholderText": "enter one or more filter strings, separated by space characters"
|
||||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
|
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
|
||||||
"gridx": 1
|
"gridx": 1
|
||||||
} )
|
} )
|
||||||
|
|||||||
Reference in New Issue
Block a user