Andre Bossard
Andre Bossard

Reputation: 6281

Why does Swing in my Java Applet flicker on fast mouse over?

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)

Upvotes: 2

Views: 1218

Answers (3)

Andre Bossard
Andre Bossard

Reputation: 6281

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

Upvotes: 0

John Goering
John Goering

Reputation: 39030

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

Upvotes: 3

Tom
Tom

Reputation: 6707

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

Upvotes: 0

Related Questions