Elements such as File, Edit etc. are too close together when using the JMenuBar in my application, it would look much nicer if there were some space between the elements. Is this possible?
required to add JComponents
that aren't focusable
, you can create an space for
JMenuBar
JLabel
(have to set for required PreferredSize
)
JSeparator
(minimus size is 10pixels, have to setOpaque
for JSeparator
)
JMenuItem
JSeparator
(no additional settings required)
JLabel
(have to set for required PreferredSize
)