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

[macos] Aqua LookAndFeel JRadioButtonMenuItem like JCheckBoxMenuItem

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.8.0_111"


      ADDITIONAL OS VERSION INFORMATION :
      10.12 macOS Sierra

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      JDK 8, macOS Sierra, MacBook Air 13, 8GB RAM

      A DESCRIPTION OF THE PROBLEM :
      Using JPopupMenu with LookAndFeel Aqua "com.apple.laf.AquaLookAndFeel"... As you can see the JRadioButtonMenuItem is presented like JCheckBoxMenuItem.

      https://stackoverflow.com/questions/47022968/macos-aqua-lookandfeel-jradiobuttonmenuitem-like-jcheckboxmenuitem?rq=1

      REGRESSION. Last worked in version 8u151

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create Popup Menu

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Different icons for JCheckBoxMenuItem and JRadioButtonMenuItem
      ACTUAL -
      macOS Aqua LookAndFeel JRadioButtonMenuItem like JCheckBoxMenuItem


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      It code doesn't produce error messages.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      PopupMenu.add(new javax.swing.JCheckBoxMenuItem("JCheckBoxMenuItem", true));
      PopupMenu.add(new javax.swing.JCheckBoxMenuItem("JCheckBoxMenuItem", false));
      PopupMenu.addSeparator();
      PopupMenu.add(new javax.swing.JRadioButtonMenuItem("JRadioButtonMenuItem", true));
      PopupMenu.add(new javax.swing.JRadioButtonMenuItem("JRadioButtonMenuItem", false));
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I haven't solution for this. I hope change the icon.

      SUPPORT :
      YES

        1. Capture.PNG
          12 kB
          Pardeep Sharma
        2. JPopupForAquaLAF.java
          1 kB
          Pardeep Sharma

            kizune Alexander Zuev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: