When migrating to Windows 7, a colleague of mine experienced small freezes in our application GUI when moving his mouse around. Thanks to the Freeze Detector (TM), we logged the following stack:
FREEZE GUI:sun.awt.Win32GraphicsDevice.isPixFmtSupported(Native Method) sun.awt.Win32GraphicsDevice.getConfigurations(Win32GraphicsDevice.java:184) javax.swing.ToolTipManager.getDrawingGC(ToolTipManager.java:227) javax.swing.ToolTipManager.showTipWindow(ToolTipManager.java:263) javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:669) javax.swing.Timer.fireActionPerformed(Timer.java:312) javax.swing.Timer$DoPostEvent.run(Timer.java:244) java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) java.awt.EventQueue.access$200(EventQueue.java:103) java.awt.EventQueue$3.run(EventQueue.java:694) java.awt.EventQueue$3.run(EventQueue.java:692) java.security.AccessController.doPrivileged(Native Method) java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) java.awt.EventQueue.dispatchEvent(EventQueue.java:703) java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Displaying the tooltip is freezing our GUI... After Googling the problem, we found several sites talking about the problem. As it turns out, the only way to get rid of those freezes is to add this flag to the command line:
-Dsun.awt.nopixfmt=true