Reputation: 747
This method
UIManager.setLookAndFeel(new SubstanceCeruleanLookAndFeel());
sets the L&F for the whole app. How do I combine this and then set different L&F just for JFrame
?
EDIT
I've found this article on Multiplexing Look and Feels. How exactly does this work? I can't find any examples.
Upvotes: 2
Views: 1680
Reputation: 205775
You can override UI defaults for a JComponent
easily enough; there's an example here that illustrates changing JTree
icons. Unfortunately, JFrame
is not a JComponent
; it has no UI delegate, and its decorations are supplied by the host operating system.
For more specific guidance, you'll need to clarify what you're trying to accomplish.
See also Validation overlays using multiplex look and feel.
Upvotes: 4