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

GTK LAF does not gray out disabled JMenu

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11, 14
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Environment:

      RHEL7, RHEL8, SLES12

      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

          Activity

            People

            Assignee:
            pbansal Pankaj Bansal
            Reporter:
            tnakamura Toshio Nakamura
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: