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 / January 2005

Tip: Looking for answers? Try searching our database.

repaint problem

Thread view: 
alun Groome - 24 Jan 2005 21:25 GMT
Hi,

Is there anyway of forcing a panel to repaint straight away?  I have 2 panels.  When somethign happens on one pannel, I want the other pannel to display the changes.

thanks in advance
Steve W. Jackson - 24 Jan 2005 22:23 GMT
>:Hi,
>:
[quoted text clipped - 3 lines]
>:
>:thanks in advance

You could attempt to use paintImmediately() on the second panel, but
it's probably not wise.

<http://java.sun.com/products/jfc/tsc/articles/painting/index.html>
contains very useful info on painting which may be of help to you.  But
overall, your best bet is probably to use repaint() on the second panel,
which posts an event to the Event Dispatch Thread to cause a painting to
occur, and the delay won't be long if none of the ongoing events on the
EDT take long to complete.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



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.