Re: using SkinLF to change application LF
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 15:16:09 GMT
Thomas Fritsch wrote:
To update the Look&Feel not only of the frames, but also of their owned dialogs, a little more effort is needed: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
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('$','@').
- Follow-Ups:
- Re: using SkinLF to change application LF
- From: anikkar@xxxxxxxxx
- Re: using SkinLF to change application LF
- References:
- using SkinLF to change application LF
- From: anikkar
- Re: using SkinLF to change application LF
- From: Thomas Fritsch
- using SkinLF to change application LF
- Prev by Date: Re: using SkinLF to change application LF
- Next by Date: can JTree's have multiple roots and models ?
- Previous by thread: Re: using SkinLF to change application LF
- Next by thread: Re: using SkinLF to change application LF
- Index(es):