Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2008, 07:47 PM
Member
 
Join Date: May 2008
Posts: 1
mike eriksen is on a distinguished road
drop down menu
i am looking for a way to use a drop down menu for my spider solitaire game
so far i can get it to run in another window but cant get the menu to run in the program
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-23-2008, 10:26 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,104
hardwired is on a distinguished road
How to Use Menus
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-19-2008, 08:33 AM
serjant's Avatar
Member
 
Join Date: Jun 2008
Location: Israel,Tel-Aviv
Posts: 40
serjant is on a distinguished road
Send a message via ICQ to serjant Send a message via Skype™ to serjant
Code:
toolMenu.addMouseMotionListener(new MouseAdapter(){ public void mouseMoved(MouseEvent e){ toolMenu.setPopupMenuVisible(true); toolMenu.setEnabled(true); fileMenu.setPopupMenuVisible(false); editMenu.setPopupMenuVisible(false); } });
For each menu write MouseMotionListener,and when the mouse moved on specific menu make setPopupMenu(true) for the menu you move the mouse,and for others is false.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create Popup Menu with Sub Menu while right-clicking the JTree Node?? Kabiraa AWT / Swing 7 05-09-2008 08:54 AM
How to use a drop-down box in Struts piterskiy74 Web Frameworks 1 02-13-2008 12:42 PM
Drop down menu BenNeiderlander New To Java 3 02-05-2008 08:35 AM
Need Help Creating a Java Drop-Down/ Collapsing Menu rudbls New To Java 3 12-16-2007 12:19 AM


All times are GMT +3. The time now is 04:32 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org