Hi,
I have a couple of JDialogs which represent my wizard. I use the
follow code to go from the first screen to the second screen.
screen1JDialog.setVisible(false);
screen2JDialog.setVisible(true);
Despite swapping the order I get this horrendous flicker and pause why
it lays out the form.
Perhaps the latter is my responsibility - but is there any way to
prepare the second form and have a nice smooth transition?
thanks
Tim
Thomas Hawtin - 26 Apr 2006 20:15 GMT
> I have a couple of JDialogs which represent my wizard. I use the
> follow code to go from the first screen to the second screen.
[quoted text clipped - 4 lines]
> Despite swapping the order I get this horrendous flicker and pause why
> it lays out the form.
Why not use just the one JDialog? witch the contents with
javax.swing.OverlayLayout or similar.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Thomas Weidenfeller - 27 Apr 2006 08:54 GMT
> screen1JDialog.setVisible(false);
> screen2JDialog.setVisible(true);
Use a card layout an one dialog only.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/