FlatLaf icon indicating copy to clipboard operation
FlatLaf copied to clipboard

Borders absent on menus and drop-downs when run in a VM (since v3.4.1)

Open lukeu opened this issue 1 year ago • 6 comments

When run in clean VM environment, we have observed borders not rendering in all menus, combo-box drop-downs etc.

This can be seen in the demo app:

Image

Using the demo, we found that the issue affects FlatLaF 3.4.1 through 3.5.4, while it was not seen in earlier versions.

Version details:

  • VM: VirtualBox 7.1.6 r167084
  • Host OS: MS Windows 11 Enterprise 10.0.22631
  • Guest (virtual) OS: MS Windows 11 Pro 10.0.22621

lukeu avatar Feb 12 '25 10:02 lukeu

Strange...

Is there any output in console if you run the demo from command line? (java -jar flatlaf-demo-<version>.jar)

Does the borders come back if you deselect "Options > Window decorations"?

DevCharly avatar Feb 12 '25 10:02 DevCharly

Is there any output in console if you run the demo from command line? (java -jar flatlaf-demo-<version>.jar)

Hi, yes there is:

C:\Java\java-21.0.3+9-jre\bin\java.exe java -jar flatlaf-demo-3.5.4.jar
Error: Could not find or load main class java
Caused by: java.lang.ClassNotFoundException: java

Does the borders come back if you deselect "Options > Window decorations"?

There is no change in behaviour when deselected.

lukeu avatar Feb 13 '25 14:02 lukeu

Just to note the precise version of Java used is the 21.0.3 JRE from adoptium.net, which may not have all the packages of the JDK distribution. (However I do not believe that is a factor, because the same Java distro on the native machine does not show these symptoms.)

lukeu avatar Feb 13 '25 14:02 lukeu

Please try:

C:\Java\java-21.0.3+9-jre\bin\java.exe -jar flatlaf-demo-3.5.4.jar

DevCharly avatar Feb 13 '25 14:02 DevCharly

Apologies! The short answer then is: nothing is logged.

(I'm relaying this from QA, I don't use VirtualBox myself and (despite trying to think where java came from) totally missed this both in testing and when copying it.)

lukeu avatar Feb 13 '25 17:02 lukeu

I can confirm that this issue persists with FlatLaf 3.5.4.

Running a clean Windows 11 installation in a VM (UTM) on mac (including all updates).

JDK is Adoptium 21:

openjdk version "21.0.7" 2025-04-15 LTS OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.7+6 (build 21.0.7+6-LTS, mixed mode, sharing)

No logging from FlatLaf (when executing java -jar .\flatlaf-theme-editor-3.5.4.jar).

chochmuthsupplyet avatar Jul 26 '25 10:07 chochmuthsupplyet