I created a simple Swing frame:
import javax.swing.*; public class A extends JFrame { public static void main(String[] args) { A a = new A(); a.setSize(100, 100); a.setVisible(true); } }
I ran it on JDK 1.6:
$ java -version java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10) (Gentoo build 1.6.0_22-b22) OpenJDK 64-Bit Server VM (build 20.0-b10, mixed mode)
I turned on the Show Mouse effect, and it worked great on the Swing window.
So, detail your question. What exactly does not work and what is the exact configuration.
source share