Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234315

GTK LAF does not gray out disabled JMenu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 11, 14
    • client-libs
    • RHEL7, RHEL8, SLES12

    • b15
    • x86_64
    • linux

    Description

      FULL PRODUCT VERSION :
      openjdk version "14-ea" 2020-03-17
      OpenJDK Runtime Environment (build 14-ea+22-982)
      OpenJDK 64-Bit Server VM (build 14-ea+22-982, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      RHEL7, RHEL8, SLES12

      A DESCRIPTION OF THE PROBLEM :
      A JMenu with setEnabled(false) is not grayed out with GTK Look and Feel.
      In SwingSet2 demo, "Themes" menu will be disabled with GTK, Nimbus, or Motif LAF.
      However, GTK LAF doesn't change the color of the menu.

      This problem didn't occur with GTK2, by "-Djdk.gtk.version=2" option.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. java -jar SwingSet2.jar
      2. Switch Look and Feel to GTK

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected:
      "Themes" menu item was grayed out.
      Actual:
      "Themes" menu item was still displayed without change.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        1. gtk2.png
          gtk2.png
          103 kB
        2. gtk3.png
          gtk3.png
          103 kB

        Issue Links

          Activity

            People

              abhiscxk Abhishek Kumar
              tnakamura Toshio Nakamura
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: