Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple JMenuItem layout

 
Jack Thomson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a situation where it's possible that there may be a whole load of JMenuItems off a JMenu. If there is enough of them, they don't all show correctly.

What's the correct way of handling this ?

As a demo I've knocked up this piece of code...

 
Matthew Middleton
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many menu items are you talking about, and why won't they fit? Are they cut off at the bottom, or the window isn't wide enough? Have you thought of maybe categorizing the menu items into different menus? Maybe like the file and edit menus, that way it'll show up and maybe make the user interface a little smoother. Let me know if that helped at all, or maybe if you explain it a little more I can help you better. GOD Bless

Matthew Middleton
 
Jack Thomson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. The problem is that they cut off at the bottom...

After consideration, I think my solution will be to break up the JMenuItems into seperate menus.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic