bunnyjesse112
bunnyjesse112

Reputation: 747

How to give the JFrame a different look-and-feel from other components (Multiplexing)?

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

Answers (2)

trashgod
trashgod

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

fluca1978
fluca1978

Reputation: 4058

It is not possible, the look and feel is application wide.

Upvotes: 0

Related Questions