Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2008, 09:44 PM
xcallmejudasx's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Houston, TX & Flint, MI
Posts: 472
Rep Power: 1
xcallmejudasx is on a distinguished road
Send a message via AIM to xcallmejudasx
Default How do I get a pop-up menu?
Whats the code to enable an object in a view(TreeViewer) to have my menu pop-up on right click? Or what class would I look under to get this information?

I have a tree displaying 4 types of objects and would like that when I right click on one an object specific menu would pop up.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-27-2008, 09:53 PM
Senior Member
 
Join Date: Sep 2008
Posts: 607
Rep Power: 1
Darryl.Burke is on a distinguished road
Default
How to Use Menus (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)

db
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-27-2008, 10:06 PM
xcallmejudasx's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Houston, TX & Flint, MI
Posts: 472
Rep Power: 1
xcallmejudasx is on a distinguished road
Send a message via AIM to xcallmejudasx
Default
Thanks for the link. Got it working
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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

BB 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 8 07-03-2009 05:41 AM
Fill a menu dynamically when menu is shown Java Tip SWT 0 07-07-2008 04:47 PM
SWT Menu Example Java Tip SWT 0 07-07-2008 04:47 PM
How to use SWT menu and menu event Java Tip SWT 0 07-07-2008 04:46 PM
React to menu action and checkbox menu Java Tip javax.swing 0 06-27-2008 07:50 PM


All times are GMT +2. The time now is 12:07 AM.



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