Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Beginner
Jan 12, 2000

Paint Outside The GUI Thread

A call to repaint() will schedule a component to be repainted when the gui thread is free. But what if we can't wait till then?

Well, we can use the "public void update(Graphics g)" method of the java.awt.Component class as in:
 
aComponent.update(c.getGraphics()); 
//aComponent is the component that we want to update 
Behrouz Fallahi
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap