Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Headers appear black (11.0.7) #120

Closed
tsmock opened this issue Jun 4, 2020 · 4 comments
Closed

Table Headers appear black (11.0.7) #120

tsmock opened this issue Jun 4, 2020 · 4 comments
Labels
bug Something isn't working platform:x86-64 macosx
Milestone

Comments

@tsmock
Copy link

tsmock commented Jun 4, 2020

  • Platform and architecture (e.g. Linux/x64: Mac OS X 10.15.5, x64

  • Java version (from "java --version") e.g. 1.8.0_181, 11.0.4+11 etc.:
    openjdk version "11.0.7" 2020-04-14
    OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

  • Variant e.g. HotSpot or OpenJ9: Should be hotspot. Installed via homebrew. It is also reproducible with OpenWebStart.

  • Have you tested it with other vendors' java: Yes. Does not reproduce on AdoptOpenJDK 11.0.6, Azul 11, AdoptOpenJDK 10, AdoptOpenJDK 12.

  • Steps to reproduce:
    Download a josm jar file from https://josm.openstreetmap.de
    java -jar ${PATH_TO_JOSM_JAR}
    Click on Imagery (top toolbar) -> Imagery preferences.

  • Error messsage and/or description of what is not working as expected:
    Non-black table headers
    black-table-headers

External bug: https://josm.openstreetmap.de/ticket/19309

@aahlenst
Copy link
Contributor

aahlenst commented Jun 4, 2020

Do you happen to use Dark Mode? I cannot reproduce this behavior with the same versions.

@tsmock
Copy link
Author

tsmock commented Jun 4, 2020

Yes, I do use dark mode.
It does not occur when started under light mode. (I didn't think to test this).

@aahlenst
Copy link
Contributor

aahlenst commented Jun 4, 2020

This is not specific to AdoptOpenJDK. Happens with BellSoft Liberica, too. Big difference is the toolchain version. Zulu is still on 10.13.

It does not happen with AdoptOpenJDK 14 and Oracle's build. But both refuse to adapt to Dark Mode, anyway.

@karianna karianna added the bug Something isn't working label Jun 4, 2020
@aahlenst
Copy link
Contributor

aahlenst commented Jun 6, 2020

I tested on a nightly build of 11.0.8 and there the problem is fixed. As with 14.0.1, Swing does not try to adapt to Dark Mode. Instead, everything stays in light mode:

Bildschirmfoto 2020-06-06 um 13 40 38

Dark Mode is unsupported. The problem is indeed the 10.14 SDK (that Azul does not use yet) which automatically opts into Dark Mode support: https://bugs.openjdk.java.net/browse/JDK-8241135. The umbrella issue to opt out is https://bugs.openjdk.java.net/browse/JDK-8231438.

For reference, how to reproduce (enable Dark Mode):

$ wget https://docs.oracle.com/javase/tutorial/uiswing/examples/components/SimpleTableDemoProject/src/components/SimpleTableDemo.java
$ javac -d . SimpleTableDemo.java
$ java components.SimpleTableDemo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:x86-64 macosx
Projects
None yet
Development

No branches or pull requests

3 participants