After that all java swing application just desplay empty blank windows?
After few hours of plying around, i found out that if i kill compiz by. for example killall compiz
i can se content of java windows but i do not have an more window title bar etc - since compiz was drawing them.

I still see intermittently on 1.6.0_03-b05 - mostly in dialog (modal) boxes. The sun bug for this is marked as fixed (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775), but there are plenty of recent comments suggesting that it's still a problem.
exporting AWT_TOOLKIT=MToolkit isn't a long term solution, Mtoolkit was replaced by default with XToolkit in java 5, and is likely to be removed at some point.

I've been having similar problems with Java under Compiz. I noticed that on my Mepis computer and Kubuntu notebook that only the Dialogs fail, not the Frames. I was also able to make the glitch happen with less frequency by calling the garbage collector. I basically set it so the garbage collector ran at the beginning of each actionPerformed(), and this made the Dialogs much more reliable.