Re: using SkinLF to change application LF



Thomas Fritsch wrote:
<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.


I did some tests with JFrames and JDialogs. Unfortunately I must withdraw my above statement, and affirm the opposite. :-(
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('$','@')

.



Relevant Pages

  • Re: using SkinLF to change application LF
    ... > JDialogs are not inherited by frames. ... 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. ... the technique will catch all your dialogs, ...
    (comp.lang.java.gui)
  • Re: Non-full screen and fullscreen dialogs
    ... > I've been trying to do a walk around for dialogs. ... > Then I create a new function that overrides the ShowDialog in the form I ... > It seems important to asign the parent before initializing the components. ... > Public Shadows Function ShowDialog() As Windows.Forms.DialogResult ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Non-full screen and fullscreen dialogs
    ... > I've been trying to do a walk around for dialogs. ... > Private Sub FrmDialog_Closing(ByVal sender As Object, ... > It seems important to asign the parent before initializing the components. ... > Public Shadows Function ShowDialog() As Windows.Forms.DialogResult ...
    (microsoft.public.dotnet.framework.compactframework)
  • Non-full screen and fullscreen dialogs
    ... I've been trying to do a walk around for dialogs. ... Then I create a new function that overrides the ShowDialog in the form I ... It seems important to asign the parent before initializing the components. ... Public Shadows Function ShowDialog() As Windows.Forms.DialogResult ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Swing Dialog Class wont wait ??
    ... Java's Swing and AWT GUI system follows the same programming model as almost all current GUI systems: ... Don't touch the threads, don't implement any busy waiting, Frames rendered into modal dialogs or other nonsense. ... You probably don't even want a sequence of dialogs, but one dialog with a sequence of panes. ...
    (comp.lang.java.gui)