This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Repaint component through functioncall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Repaint component through functioncall" Watch "Repaint component through functioncall" New topic
Author

Repaint component through functioncall

Joe Schaffer
Greenhorn

Joined: Mar 24, 2004
Posts: 29
Hi,

I want to update the color of a Graphics object through a function call. How can I do that? My program consists of a main function. This function generates a Window object. Which finally displays my Window and starts an endless threat, basically never comes back to the main function.

I want to update the graphic object through a function call from my thread. (It should simply change the color from red to green if a special event happend.)

Can anybody help me? The code is listed.

Joe


Main:



RCMWindow:




StatusIndication:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Repaint component through functioncall
 
Similar Threads
Sizing windows dynamically
shortcuts like VB's "with" keyword
Swing & Awt on Windows XP
Can someone plz check it
Can't find itself