Forums Register Login

Repaint component through functioncall

+Pie Number of slices to send: Send
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:
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 960 times.
Similar Threads
Swing & Awt on Windows XP
Sizing windows dynamically
shortcuts like VB's "with" keyword
Can't find itself
Can someone plz check it
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:18:32.