Faced some sort of "rendering problem" on MATE few days ago. Wmname crashed MATE completely, but I found a nice fix on one of Linux Mint forums.
Here is git repo with description and sources. It's a simple jar that injects into Java X11 class and force it to return fixed, user defined string, instead of actual WM name.
Already posted PKGBUILD to AUR and think about posting this solution here. Is there anything special I should know/do before posting?
- Thanks for this info. It is about MATE so you should add it to MATE page.
- If there is any bug link about this, please add it too so after this is fixed. Such workaround could/should be removed.
- --Fengchao (talk) 07:08, 14 June 2014 (UTC)
- The trick here that it is not just about MATE, but another solution to Java#Impersonate another window manager.
- And as it's more accurate way (than wmname) to solve this problem, I think it should be marked as recomended.
- --Ffuugoo (talk) 09:32, 30 June 2014 (UTC)
GTK+3 on Java 9
Java 9 released on the 21/9/2017, and with it came the ability to force AWT, Swing and JavaFX programs to use GTK+3 with the GTK Look and Feel. As such I propose editing the GTK Look and Feel section  to include this. GTK+3 is enabled using -Djdk.gtk.version=3 (or 2, 2.2) in _JAVA_OPTIONS, meaning it can be placed in a users .rc file or in /etc/environment.
Note that to enable this, users will have to use extra/jdk9-openjdk, extra/jre9-openjdk and extra/jre9-openjdk-headless, before changing their version using archlinux-java.
Installing official oracle jdk
I would like to add a section to how to install the latest jdk directly from oracle website the solution is to:
1-download the tar.gz binary archive from oracle
2-untar the file to /usr/lib/jvm/
3-run the # archlinux-java status command to get the name of the detected java versions by the archlinux-java program
4-run # sudo archlinux-java set jdk-X.X.X to Force <JAVA_ENV> as default
now all jdk binaries like javac and java will point to the correct version.
the reason for this is that the package maintainer for package jdk9-openjdk Guillaume Alaux seem to not have plans for OpenJFX for OpenJDK9 mainly due to lack of time and interest: 
Java applications do not show icons correctly. I'm using gnome (also tried with xfce). When the application is launched the icon specified in the .desktop file is not what's displayed in the dock or on the toolbar. This is something that only happens with Java applications. I've been trying to research this but haven't really come up with any good solutions yet. I think it has something to do with the fact that Java applications are putting code into a different process and running in the JVM? TheChickenMan (talk) 16:16, 18 April 2019 (UTC)