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

Swing's GTK l&F leaves JMenuItems without borders (on default Ubuntu themes)

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_15"
      Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
      Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
      1.6.0_18

      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 10.11 x64, along with all other Linux variations tested

      A DESCRIPTION OF THE PROBLEM :
      When using GTK LAF, if Clearlooks is the current theme Swing will create JMenuItems without borders. The result is no visual indication of where the JMenuItem ends and where an underlying white JComponent starts. This is not the native behavior of Clearlooks menu items. See any GNOME app with Clearlooks running.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the SwingSet2 Demo on a machine with GTK installed <http://java.sun.com/products/jfc/jws/SwingSet2.jnlp>. Make sure Clearlooks is running first. Compare the lack of borders on menu items when GTK LAF is selected to the borders of native GTK applications.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The Swing app will have no menu item borders while native GTK apps will have a subtle gray menu item border.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      http://java.sun.com/products/jfc/jws/SwingSet2.jnlp
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              serb Sergey Bylokhov
              Reporter:
              ndcosta Nelson Dcosta
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: