• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multiple JMenuItem layout

 
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...

 
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
 
I am going to test your electrical conductivity with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic