Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2006

Tip: Looking for answers? Try searching our database.

JPopupMenu taller than screen

Thread view: 
swebb99@gmail.com - 03 Aug 2006 17:37 GMT
Hi,

I'm running a java app on a win2000 box and one of the popups can have
lots of entries, this causes the popup menu to be taller than the
screen and you can only select the entries shown.

Normal windows apps appear to offer the chance to move the mouse near
the bottom of a menu and then then a 2nd menu appears with the next set
of entries.

Any idea's how I can code round this problem with the java popups. Is
there a 3rd party version of the JPopupMenu or some other mechanism I
can use ?

Thanks

Steve
Thomas Fritsch - 03 Aug 2006 18:16 GMT
> I'm running a java app on a win2000 box and one of the popups can have
> lots of entries, this causes the popup menu to be taller than the
[quoted text clipped - 7 lines]
> there a 3rd party version of the JPopupMenu or some other mechanism I
> can use ?
To get around this I would reorganize the popup-menu to contain nested
sub-menus:
  JPopupMenu popupMenu = new JPopupMenu();
  JMenu subMenu1 = new JMenu("1");
  subMenu1.add(...);
  subMenu1.add(...);
  ...
  popupMenu.add(subMenu1);
  JMenu subMenu2 = new JMenu("2");
  subMenu2.add(...);
  subMenu2.add(...);
  ...
  popupMenu.add(subMenu2);

Signature

Thomas

swebb99@gmail.com - 03 Aug 2006 22:32 GMT
> > I'm running a java app on a win2000 box and one of the popups can have
> > lots of entries, this causes the popup menu to be taller than the
[quoted text clipped - 23 lines]
> --
> Thomas

Thanks Thomas I think your right. Now time for another entry in the
group asking for any algorithms that can be used to construct the
submenu's.

Steve


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.