Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2006

Tip: Looking for answers? Try searching our database.

Dialog wizard flickers

Thread view: 
timasmith@hotmail.com - 26 Apr 2006 02:23 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.