Java GUI extremely slow

view full story

http://askubuntu.com – I'm writing a Java app and the GUI is extremely slow on my Ubuntu 11.10 64bit setup. It takes a few seconds to respond to some action. It runs flawlessly on both Max OS X and Windows 7, it actually works just fine on a fresh Ubuntu 11.10(both 32 and 64bit) VirtualBox run on Win7. I have already tried three different Java versions and it didn't help. What could be the problem? Current Java version: java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) (HowTos)