• Post Reply Bookmark Topic Watch Topic
  • New Topic

simple JMenuBar, JMenu question ..

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!