Can I set two different views and fields on the same JFrame?

I want to set two different views to one frame.
I have two different panels.
i want to set two different looks and for both.
Can I do it?
And if so, how?

+2


a source to share


3 answers


Appearance - global setting (application). You cannot individually combine different ones. How to set the look is described here .



+3


a source


I think it is not possible from Java classes to look and feel like they are set for the whole application like UIManager.setLookAndFeel ();



so you need to do it yourself.

+2


a source


LAF components are defined when the component is created. In theory, you can do:

a) set LAF
b) create component
c) reset the default LAF value.

You may or may not run into problems, so use them at your own risk.

+2


a source







All Articles