Re: using SkinLF to change application LF



Thomas Fritsch wrote:
Is there a way to somehow autmatically make every dialog/frame/etc that
is open to incorporate this change? Even ones that aren't visible?
(this is for the case of singleton dialogs)


Yes, you can. See the answer in http://groups.google.de/group/comp.lang.java.gui/msg/1dd711387454d973

To update the Look&Feel not only of the frames, but also of their owned dialogs, a little more effort is needed:
Frame frames[] = Frame.getFrames();
for (int i = 0; i < frames.length; i++) {
SwingUtilities.updateComponentTreeUI(frames[i]);
Window windows[] = frames[i].getOwnedWindows();
for (int j = 0; j < windows.length; j++) {
SwingUtilities.updateComponentTreeUI(windows[j]);
}


--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

.