I am creating a look and feel that inherits from NimbusLookAndFeel
and let me know how I can register my own components to use their custom Painter.
For example, a JButton
like this ButtonPainter
class used to be painted. Also would like to know how to register different states (for examples BACKGROUND_ENABLED
, BACKGROUND_FOCUSED
...)
Can you lead me how I can do this? Actually I want to do is a custom tabbed pane and that this use their own Painter.
Edit: hmm I think I have not explained well.
I want to make a custom component, for example MyCustomTabbedPane
, and this stylize from the look and feel that inherits from Nimbus. Can I register my own UI classes, for example MyCustomTabbedPaneUI
making uiDefault.put("MyCustomTabbedPaneUI", new MyCustomTabbedPaneUI())
?
How I can make my own UI class what logic should have this class?
And another question, how I to assign this class Painter, for example MyCustomTabbedPanePainter
defining my own component states, as does Nimbus, such as BACKGROUND_ENABLED
.
Thanks and Regards!