Comment 35 for bug 932274

Revision history for this message
Miklos Juhasz (mjuhasz) wrote :

Yes, there are several issues with the Java Swing GtkTheme:

- menu bar picking up wrong colors
- dropdown menus and context menus have no border
- dropdown menus and context menus are missing dropdown-shadow
- menu separators are missing

In an ideal world this would be fixed in the JDK... but as a Java developer I can only fix my app to make it look decent in Ubuntu 12.04 by

- setting the menu color explicitly if under Gtk Ambiance theme
- using heavy-weight popups so that they have border and dropdown-shadow
- explicitly setting the y thickness so that menu separators show up

All these workarounds can be examined e.g. in this source: https://github.com/mjuhasz/BDSup2Sub/blob/2180016ff01de9c0a056f743387b90c2de11b2d4/src/main/java/bdsup2sub/gui/support/GuiUtils.java