The World’s Largest Online Community for Developers

'; Why does Swing in my Java Applet flicker on fast mouse over? - LavOzs.Com

I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager.

If I move the mouse slowly over the various GUI Components everything appears to be fine, but if I move the mouse fast, it flickers.

What could make that nasty ugly redraw? (Core 2 Duo 6300, 2GB Ram, Windows XP)

One thought would be to check your code (and/or the MigLayout code) for unnecessary repaint() operations.

Custom UIs and layouts can cause weird problems sometimes...

you could use double buffering in java applet to improve screen refreshing speed. ask more if details needed..

I found the bugger: I used a custom ClosableTabbedPaint Class.

How do I efficiently iterate over each entry in a Java Map?
Does a finally block always get executed in Java?
How does the Java 'for each' loop work?
When to use LinkedList over ArrayList in Java?
Why does Java have transient fields?
Does Java support default parameter values?
A 'for' loop to iterate over an enum in Java
Why is char[] preferred over String for passwords?
Why does this code using random strings print “hello world”?
Why is executing Java code in comments with certain Unicode characters allowed?