Why does Swing in my Java applet flicker on a quick mouse?

I created a Java applet with some standard GUI components. I used the MigLayout Manager.

If I slowly move the mouse over the various components of the GUI, everything looks fine, but if I quickly move the mouse, it flickers.

What can this nasty ugly redraw do? (Core 2 Duo 6300, 2 GB, Windows XP)

+2
source share
3 answers

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

User interfaces and layouts can sometimes cause strange problems ...

+3
source

you can use double buffering in java applet to improve screen refresh rate. ask more if you need details ..

0
source

I found a bugger: I used my own ClosableTabbedPaint class .

0
source

Source: https://habr.com/ru/post/1277284/


All Articles