Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMenuItem: how to remove the extra space on the left-side

843806Sep 1 2008 — edited Sep 9 2008
Hello all,

this will sound like an old question, but I have browsed thru the forums archive and I did not find an answer (maybe I did not search well...)

Is there a simple way to get rid of the ugly extra space in the left-side of a JMenuItem? I am referring to the space that is used by the descendants JCheckBoxMenuItem and JRadioButtonMenuItem, respectvely to display the [X] and (o) signs. That extra space is "painted" even when the JMenuItem is just a plan JMenuItem, which is very ugly.

This question nas nothing to do with the optional icon that every JMenuItem allows. The extra left space is there regardless of an icon being added or not.

TIA to all volunteers.
de_facto
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2008
Added on Sep 1 2008
10 comments
2,603 views