Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Swing GUI Not Displaying in Xmonad

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?

like image 276
Brian Avatar asked Jun 09 '15 20:06

Brian


Video Answer


1 Answers

For a 100% explicit answer, just paste this into ~/.xmonad/xmonad.hs:

import XMonad
import XMonad.Hooks.SetWMName

main = xmonad defaultConfig
    { startupHook = setWMName "LG3D" }
like image 193
David Kay Avatar answered Oct 14 '22 08:10

David Kay