This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes repaint problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "repaint problem" Watch "repaint problem" New topic
Author

repaint problem

alun groome
Greenhorn

Joined: Jan 21, 2005
Posts: 21
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
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

You can call the repaint() method although it's really just a suggestion. The Event Dispatch Thread handles all that stuff automagically. Calling repaint generally does the trick though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: repaint problem
 
Similar Threads
Garbage Collection
using JOtionPane
java.exe encountered a problem
Trouble with repainting Jframe (i think)
repaint problem