-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_95
Name: krT82822 Date: 01/18/99
...in BasicMenuItemUI (and corresponding getDefaultTextIconGap())
original synopsis: "no way to make icons in JMenuItem truly left justified"
There is no way to get rid of the gap on the left side of a
JMenuItem. This is controlled by the defaultTextIconGap
member variable in BasicMenuItemUI.
This needs a get/set method.
JPopupMenu popup = new JPopup();
JMenuItem menuItem = new JMenuItem();
menuItem.setIcon(someIcon);
popup.show();
The image is not left justified even if you set all left justification.
(Review ID: 52824)
======================================================================
- duplicates
-
JDK-4738983 JMenuItem.setIconTextGap does nothing
-
- Resolved
-