aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Changing LookAndFeel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Changing LookAndFeel" Watch "Changing LookAndFeel" New topic
Author

Changing LookAndFeel

Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
How do I use different LookAndFeel for my application?

I used WindowsLookAndFeel for my application. Now I need to use MetalLookAndFeel for a new class with in the application. How can I change to new LookAndFeel?
I tried UIManager.setLookAndFeel method. But It keeps the WindowsLookAndFeel, not changing to MetalLookAndFeel.

Thanks,


Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
sounds like the windowsLookAndFeel is being set later in your code

use your ide's edit/find to search for the L&F name, or (possibly) for
SwingUtilities.updateComponentTreeUI //if L&F set after components created
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
Thanks Michael
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing LookAndFeel
 
Similar Threads
JButton is not displaying the background color
How to retrieve data from database every 10 minutes?
JTree CellRenderer weird problem
cant i change LAF at runtime?
JFileChooser lookandfeel