United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6925412 Swing's GTK l&F leaves JMenuItems without borders (on default Ubuntu themes)
JDK-6925412 : Swing's GTK l&F leaves JMenuItems without borders (on default Ubuntu themes)

Details
Type:
Bug
Submit Date:
2010-02-11
Status:
Open
Updated Date:
2013-10-07
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
linux
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Unresolved
Affected Versions:
6u15,7,8
Targeted Versions:
9

Related Reports

Sub Tasks

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 ----------

                                    

Comments
You have approval to defer the following issues. Please update.

Cheers,

B.
                                     
2013-10-07
Still a visible annoyance with Java 7 and Java 8 on the latest Ubuntu 12.10 with the default Gnome 3 theme (Ambiance).

Can this be fixed now? Thanks.
                                     
2012-12-04
I guess this is the same issue like in macosx. This border/shadow appears outside of the native window. SInce our popup menu is lightweight by default, it does not have this border. 
So clients of the swing should be aware about setLightWeightPopupEnabled()/setDefaultLightWeightPopupEnabled() methods.
                                     
2012-12-05
8-defer-request:
This is an issue from 6u15, reproduced on 7 GA. 
                                     
2013-10-01
jdk8: SQE OK to defer

                                     
2013-10-02



Hardware and Software, Engineered to Work Together