aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Animation - Need way to avoid UI wipe off Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Animation - Need way to avoid UI wipe off" Watch "Animation - Need way to avoid UI wipe off" New topic
Author

Animation - Need way to avoid UI wipe off

parind poi
Greenhorn

Joined: Jun 19, 2001
Posts: 9
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?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
This is set up to compile and run in j2se 1.5
If using j2se 1.4 or earlier comment out the j2se 1.5 lines and uncomment the j2se 1.4 lines in the three areas of NetworkPanel, eg,

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Animation - Need way to avoid UI wipe off
 
Similar Threads
View State
Window title blink.
to disable browser's max & min buttons
Custom UI .....
How to catch browser minimized event