Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix a Java-GUI-program (swing), that it works with awesome-wm?

The swing-UI of Java-programs doesn't work perfectly together with the awesome-wm. awesome is a window-manager for UNIX, that automatically resizes program-windows, and the Swing-UI doesn't recognize these resizes correctly. I don't care if awesome or Java is guilty, what I wanna know if I can change my Java-programs in a way, that they will work with awesome. So that users of my programs get the correct experience, even when they use exotic window-managers.

like image 745
Mnementh Avatar asked Apr 06 '09 12:04

Mnementh


People also ask

Which is better JavaFX or swing?

In short, Swing and JavaFX are both GUI toolkits for Java programs. Swing is the old standard toolkit that features a bigger library of GUI elements and mature IDE support. JavaFX is the newer standard with a smaller library, more consistent updates, and consistent MVC support.

What is Swing GUI in Java?

Swing in Java is a lightweight GUI toolkit which has a wide variety of widgets for building optimized window based applications. It is a part of the JFC( Java Foundation Classes). It is build on top of the AWT API and entirely written in java. It is platform independent unlike AWT and has lightweight components.


1 Answers

Easiest workaround - get wmname from suckless and use it to set the name of the window manager to LG3D:

wmname LG3D

98% of the time this will fix the issue.

like image 128
Myer Avatar answered Oct 12 '22 12:10

Myer