Re: using SkinLF to change application LF
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 13:50:32 GMT
Thomas Fritsch wrote:
I did some tests with JFrames and JDialogs. Unfortunately I must withdraw my above statement, and affirm the opposite. :-(<anikkar@xxxxxxxxx> wrote:
Thanks for the reply, but it seems that only refers to Frames, where JDialogs are not inherited by frames. I checked to see if there is a similar method for Dialogs, but i didn't see anything of the sort.
you have any ideas?
A Dialog or JDialog always has a Frame as its parent (or as grand-parent, or as grand-grand-parent, or ...). See the javadoc of the dialog constructors. And even if Java might allow you to construct a Dialog with a null parent, then Java creates an invisble Frame behind the scenes to become the parent.
In short: the technique will catch all your dialogs, too.
SwingUtilities.updateComponentTreeUI(frame) does *not* reach the frame's dialogs. The dialogs keep their Look&Feel.
I don't know exactly why. Probably the frame/dialog relationship is somewhat different from the normal parent/child relationship in containers.
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@').
- Follow-Ups:
- Re: using SkinLF to change application LF
- From: Andrew Thompson
- 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
- Re: 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: SWT: multiline tablecell
- Next by Date: Re: using SkinLF to change application LF
- Previous by thread: Re: using SkinLF to change application LF
- Next by thread: Re: using SkinLF to change application LF
- Index(es):
Relevant Pages
|