This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing LookAndFeel

 
Makesh Kumar Ramakrishnan
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic