1

I was working with some old Java apps which use the Nimbus theme, when suddenly this buggy controls make an appearance:

Nimbus-themed frame with buggy controls

This started happening when I updated from OpenJDK 8 to OpenJDK 11 (I am working on Linux).

Everything else works as expected, including other themes.

I tried reinstalling OpenJDK, no improvements.

Is this an isolated case? Any ideas about how could I solve it (I cannot downgrade to JDK8)? (See edit)


Edit (2019-05-06)

I have tried the same binary in a clean virtual machine, and it works perfectly well, so I guess I might have a problem in my system.

I have KDE Neon 18.04.1 64-bit, GPU AMD RX470 with default drivers.

Any ideas?

Community
  • 1
  • 1
  • Did you try openjdk-12 ? – NoDataFound May 05 '19 at 18:43
  • Find the path that is being used. You can change it to the one you wish. https://askubuntu.com/questions/772235/how-to-find-path-to-java – acarlstein May 05 '19 at 18:50
  • How do you specify nimbus look-and-feel? From what I see at https://blog.codefx.org/java/java-11-migration-guide/ it changed from `com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel` to `javax.swing.plaf.nimbus.NimbusLookAndFeel`. – Pshemo May 05 '19 at 18:55
  • @NoDataFound I tried with JDK8 and worked, will not try no-LTS version. @acarlstein I do not get the point of your comment, Java works perfectly well, I have no other installations of Java, the path is set to the right binaries. @Pshemo I use `UIManager.getInstalledLookAndFeels()` so I can properly set `UIManager.setLookAndFeel(themePackage.getClassName());` after comparing if it is installed. – David Tabernero M. May 05 '19 at 19:18
  • @DavidTaberneroM.: my remark was to see if the bug is still there. You could probably also try Java 9 and Java 10, to see where it come from. – NoDataFound May 05 '19 at 19:43
  • @NoDataFound Ok, I have just tried them in a clean VM and everything works. I edited the question accordingly. – David Tabernero M. May 05 '19 at 23:53

0 Answers0