I wa开发者_StackOverflownt to set two different look and feel on one frame.
I have two different panels in that. i want to set two different look and feel for both.Can I do that? And if yes then how?
The look and feel is a (application) global setting. You can't individually combine different ones. How to set the look and feel is described here.
i think Not possible from Java look and feel classes as they are set for whole application like UIManager.setLookAndFeel();
so you have to do it from your own.
A components LAF is determined when the component is created. So theoretically you can do:
a) set LAF
b) create the component
c) reset the LAF to the default.
You may or may not encounter problems so use at your own risk.
精彩评论