为什么在我的Java Applet忽悠了挥杆速度快的鼠标? [英] Why does Swing in my Java Applet flicker on fast mouse over?
本文介绍了为什么在我的Java Applet忽悠了挥杆速度快的鼠标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在上面做了一个Java小程序的一些标准GUI组件。我用了 MigLayout 经理。
I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager.
如果我慢慢地将鼠标移动到不同的GUI组件的一切似乎都很正常,但如果我快速移动鼠标,它闪烁。
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.
什么可以让那个讨厌的丑重绘?
(酷睿2 6300,2GB内存,Windows XP中)
What could make that nasty ugly redraw? (Core 2 Duo 6300, 2GB Ram, Windows XP)
推荐答案
有想到会是检查你的code(和/或MigLayout code)对于不需要的重绘()
操作。
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...
这篇关于为什么在我的Java Applet忽悠了挥杆速度快的鼠标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文