A serious issue when you use Compiz (for example in Ubuntu) and when you launch Java application (AWT or SWING). You get grey or white window, ie you can’t see anything inside the window of your application.
THE soluce :
edit your /etc/environnement and put that at the end :
Relaunch your system and this issue will be fixed !