This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to implement a network simulation animation with messages (icons) flowing back and forth between nodes (filloval). Each node is a thread behind the scenes and determines which message to send based on its state transition model.
Now everytime the window is minimized or some other window comes over my swing window, the part of the window overlapped becomes blank. The books say that I have to put in all the drawing code in paint() so that it will update itself whenever invoked automatically.
How can i do this - the state transition is per thread. Any ideas as to how I can avoid the system from wiping my UI when minimized or overlapped?