Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

how do i changed the LookAndFeel for my application when it is already running?

I wanted to allow the user to select the LookAndFeel they like and change it while they are running the application. But i'm not sure how.. do i just use the UIManager.setLookAndFeel to change it? but since the application is running, all the frame is opened, how this change affect them?

tks
0
InNoCenT_Ch1ld
Asked:
InNoCenT_Ch1ld
  • 4
  • 3
1 Solution
 
objectsCommented:
UIManager.setLookAndFeel(name);
SwingUtilities.updateComponentTreeUI(frame);
0
 
InNoCenT_Ch1ldAuthor Commented:
>>SwingUtilities.updateComponentTreeUI(frame);
where should i do this? on every frame?
0
 
InNoCenT_Ch1ldAuthor Commented:
what about static frame?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
InNoCenT_Ch1ldAuthor Commented:
static dialog actually...
0
 
objectsCommented:
yes for every top level container
you might want to also pack() them to account for size changes.
0
 
InNoCenT_Ch1ldAuthor Commented:
ok, thank you ;-)
0
 
objectsCommented:
no worries :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now