Java Web Start application shows empty window on XMonad

I use XMonad+gnome as window Manager. I have the problem that, when I run a Java Web Start applicacion, It olways show an empty window, like the screen:

Is there something I can do to fix it?


I tried simple programs from JWS Examples and it works, right. So it should be a problem of the application.

The failed aaplication is Blast2Go.


Change the name of the window manager to a known one like LG3D:

startupHook = setWMName "LG3D"

I had the exact same problem with my own Java code and using the other suggested solutions (setWMName, MToolkit, etc.) did not solve the problem with Xmonad. I must note that in other window managers (e.g. fluxbox), the app works as expected. In my case, however, I figured out the problem. If you have access to the source of the Java app, I suggest you consider the following:

If you have any JFrame or JPanel or other containers, you should explicitly define their layouts. If you set the layout to null, then the dimensions of the container must be set explicitly. Otherwise, the container won't be rendered at all. For instance, I have a JPanel that contains all my widgets. I'd rather have full control over the layout, so I set the layout to null, and then explicitly set the dimensions for the JPanel:

jContentPane.setPreferredSize(new Dimension(appletWidth,appletHeight+100)); 

Hope this helps.

Need Your Help

TFS label deployment to QA or PROD IIS enviroments

visual-studio tfs build-automation tfsbuild

I am new TFS deployment. Now I have to create automated deployment by giving the label name and environment and its path.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.