views:

557

answers:

3

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)

A: 

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

Tom
According to http://java.sun.com/products/jfc/tsc/articles/painting/double buffering is ENABLED BY DEFAULT for all Swing components.
ivan_ivanovich_ivanoff
+3  A: 

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...

Epaga
You're right. Thanks. I found out, that I used a custom component which registered a MouseListener.
Andre Bossard
A: 

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

Andre Bossard