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:
Karl Tauber
2021-10-07 14:22:47 +02:00
parent 9636809b4d
commit 5ecf19ef4f
13 changed files with 169 additions and 28 deletions

View File

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