This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes simple JMenuBar, JMenu question .. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "simple JMenuBar, JMenu question .." Watch "simple JMenuBar, JMenu question .." New topic
Author

simple JMenuBar, JMenu question ..

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
I have a JMenuBar 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 ?
thanks
Marcel de Jong
Ranch Hand

Joined: May 27, 2002
Posts: 54
Sarim,
did you try to use the method JMenu.addSeparator()
Otherwise, take a look at the JSeparator class in the API.
Marcel
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: simple JMenuBar, JMenu question ..
 
Similar Threads
JMenuBar Question
menu behaviour when resizing windows in Swing
a question about JApplet and JMenuBar
JMenuBar error.
a question about MenuBar and Frame?