I have a Java swing GUI that runs and displays fine using other window managers but when I run it in Xmonad it does not display correctly. All that displays is the frame of the window which is grayed out with no buttons, menus, etc. How can I make the Swing GUI display correctly?
In
~/.xmonad/xmonad.hs
addimport XMonad.Hooks.SetWMName
.Then add
startupHook = setWMName "LG3D"
to tell Xmonad to useLG3D
as the window manager name.Lastly, restart Xmonad using mod-q to reload xmonad.hs.
Sources:
http://thinkingeek.com/2012/01/24/fix-java-gui-applications-xmonad/
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-SetWMName.html