mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Styling: added styling properties that are likewise to client properties
(e.g. `buttonType: help` on `JButton` does the same as setting client property `JButton.buttonType` to `help`)
This commit is contained in:
@@ -82,7 +82,7 @@ class FlatThemePreviewButtons
|
||||
continue;
|
||||
|
||||
AbstractButton b = (AbstractButton) c;
|
||||
if( !Objects.equals( b.getClientProperty( BUTTON_TYPE ), BUTTON_TYPE_HELP ) )
|
||||
if( !BUTTON_TYPE_HELP.equals( b.getClientProperty( BUTTON_TYPE ) ) )
|
||||
b.putClientProperty( BUTTON_TYPE, buttonType );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user