dcsimg
How to add popup menus like this ??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   eclipse_programmer
Posted On:   Friday, February 15, 2008 12:33 AM

Hi

How can i add this type of popup menus when right click .

see this image

Re: How to add popup menus like this ??

Posted By:   Robert_Lybarger  
Posted On:   Friday, February 15, 2008 09:06 AM

If you are asking how to add a context menu to your own java application, then start looking in the API docs at JComponent.setComponentPopupMenu(JPopupMenu). The JPopupMenu works very similarly to a standard JMenuBar, if you've ever coded one of those up. But if you are asking how to add an entry into the operating system's context menu, then you'll have to find an operating-system-specific forum, and go ask over there.
About | Sitemap | Contact