A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
simple JMenuBar, JMenu question ..
Joined: Nov 02, 2000
Aug 13, 2002 22:29:00
I have a
and i have 'added' a few
JMenus to it. Problem is they are arranged left
to right horizontally in a default box layout, and seem attached to each other, how can i create a space between the menus ?
Marcel de Jong
Joined: May 27, 2002
Aug 14, 2002 00:38:00
did you try to use the method JMenu.addSeparator()
Otherwise, take a look at the
class in the API.
Joined: Sep 28, 2000
Aug 14, 2002 05:59:00
could you paste the code where you are adding the menus to the menubar?
normally there should be space between them. maybe your frame is just to small?!
I agree. Here's the link:
subject: simple JMenuBar, JMenu question ..
menu behaviour when resizing windows in Swing
a question about MenuBar and Frame?
a question about JApplet and JMenuBar
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013