GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Multiple JMenuItem layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Multiple JMenuItem layout" Watch "Multiple JMenuItem layout" New topic
Author

Multiple JMenuItem layout

Jack Thomson
Greenhorn

Joined: Nov 14, 2002
Posts: 5
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

Joined: May 05, 2004
Posts: 23
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

Joined: Nov 14, 2002
Posts: 5
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
 
GeeCON Prague 2014
 
subject: Multiple JMenuItem layout