Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

repaint() but no changes until i minimise then maxamise?

Status
Not open for further replies.

paulbradley

Programmer
Oct 9, 2002
158
GB
I have an application where entering certain numbers changes the data held, I had observers looking at these observables and when they are notified they make changes to what is displayed on screen, one of these is some swing graphics. I do a repaint() in the observer but when I run the app nothing happens until i move the window of the screen and back on again. Is there a way of getting it to actually re draw the window so I can see the changes instantly?

Many thanks in advance.
 
Which control are you actually repainting? You should do that on the top one.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top