Calling the paint() or update() method from the main()?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jeevan_Sandhu
Posted On:   Wednesday, March 13, 2002 06:22 AM

Does anybody know how to refresh a JFrame so that it updates/refreshes the screen?

When i manually resize the frame, the update or paint method is called but i cant seem to be able to call the paint() method from within the program.

Re: Calling the paint() or update() method from the main()?

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, March 13, 2002 07:00 AM

You want to call some combination of invalidate(), revalidate(), or repaint() related methods. It occurrs to me that it was hard to force a canvas to refresh itself.



-chris
About | Sitemap | Contact