Get rid of wasted/unused space in a JMenu

Posted by Trevor Harrison on Stack Overflow See other posts from Stack Overflow or by Trevor Harrison
Published on 2010-02-16T18:14:04Z Indexed on 2010/03/18 0:51 UTC
Read the original article Hit count: 372

Filed under:
|
|

In my app, I've got a menu bar with a File menu. In the submenus, each JMenuItem is wasting a lot of white space to the left of the text for a checkbox (I think), even though I'm not including any JCheckBoxMenuItems.

I'm seeing lots of other java/swing apps who's menus don't waste this space. How do I do it in my app?

Menu screen shot

© Stack Overflow or respective owner

Related posts about swing

Related posts about java