Saturday, December 22, 2007

I have been using XMonad as my primary window manager for a few weeks now. No problems whatsoever. But today, I felt like playing with Netbeans a little. That's when I discovered that Java applications don't seem to be able to draw their windows on the screen (except the splash screens) when under XMonad. I have seen that under GNOME/Metacity, the same application works fine. So, I googled for a bit and found this: http://www.haskell.org/pipermail/xmonad/2007-June/001078.html

It seems that the problem appears only with apps using the swing toolkit. But the solution is simply to set an environment variable:
--------------------------------------------
export AWT_TOOLKIT=MToolkit
--------------------------------------------


Thats all that was required to solve the problem.