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 / October 2005

Tip: Looking for answers? Try searching our database.

want JMenu visible after JMenuItem click

Thread view: 
Raymond Cruz - 04 Oct 2005 18:02 GMT
I would like my JMenu to stay visible after certain JMenuItem selections are
clicked.  In particular, I want my JMenu to have two ButtonGroups of
JRadioButtonMenuItems.  It makes sense for the user to be able to make a
selection from each group without the menu disappearing after each
selection.  I would include an "Exit" item that would dismiss the menu.  I
could not determine how to do this from either the docs or NG posts.

RC
Oliver Wong - 04 Oct 2005 20:01 GMT
>I would like my JMenu to stay visible after certain JMenuItem selections
>are
[quoted text clipped - 3 lines]
> selection.  I would include an "Exit" item that would dismiss the menu.  I
> could not determine how to do this from either the docs or NG posts.

   Don't have any experience in attempting this, but my first attempt would
probably be to override the mouse listener on the JMenu, and do my own
manual processing of the click events.

   Incidentally, I think this sounds like a rather poor GUI design idea,
and violates the rule of least surprise. Have you considered putting all the
radio buttons on a JFrame which can be dismissed/hidden using a JSplitter?

   - Oliver


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.