JDK-8249251 : [dark_mode ubuntu 20.04] The selected menu is not highlighted in GTKLookAndFeel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,14,15,16
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2020-07-13
  • Updated: 2021-06-04
  • Resolved: 2020-07-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 JDK 16 JDK 8 Other
11.0.9-oracleFixed 13.0.7Fixed 15 b33Fixed 16Fixed 8u270Fixed openjdk8u292Fixed
The selected Menu is not highlight in GTKLookAndFeel in Ubuntu 20.04. so, there is no difference between selected and unselected Menu.
The issue can be reproduced by running Swingset2
Fix request (13u): tried with different WMs. The fix seems working well with SwingSet2; automatic swing tests don't show any regression.

Ubuntu 20.04 Dark Mode corresponds to activating the GTK3 theme "Yaru-Dark". When backporting this I noticed that the test still fails with (at least) GTK3 theme "HighContrastInverse" supplied with GTK 3.24.5. I did not exhaustively test all GTK3 themes.

Tests used for verification: I have used SwingSet2 of JDK15b33 and launched the demo from command prompt using jdk 15 b 30/33 with GTKLookAndFeel. Tested on linux-x64 (blr003a141.in.oracle.com) JDK15 b30: test FAILED TEST RESULTS: - I have observed that the selected menu was not highlighted. JDK15 b33: test PASSED TEST RESULTS:- The selected menu was highlighted. Resolution: The fix succeeded.

Fix request (11u) -- will label after testing completed. I would like to downport this for parity with 11.0.9-oracle. Applies clean.

URL: https://hg.openjdk.java.net/jdk/jdk15/rev/fee61d4c5e7e User: pbansal Date: 2020-07-15 18:11:50 +0000

webrev: http://cr.openjdk.java.net/~pbansal/8249251/webrev01/ https://mach5.us.oracle.com/mdash/jobs/panbansa-client-20200711-1454-12573307 Mach5 job without the RETRY_COUNT option.