Link to home
Create AccountLog in
Avatar of InNoCenT_Ch1ld
InNoCenT_Ch1ld

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of InNoCenT_Ch1ld
InNoCenT_Ch1ld

ASKER

>>SwingUtilities.updateComponentTreeUI(frame);
where should i do this? on every frame?
what about static frame?
static dialog actually...
yes for every top level container
you might want to also pack() them to account for size changes.
ok, thank you ;-)
no worries :)