Create a right click menu on my own component?


Is there a way to create a right click menu (with my own actions in it), on
a component i've added as a plugin?
I can't find a way to do it, since i can add actions to exisiting popups
(adding to their ids) but can't find a way to create a new one.



1 comment
Comment actions Permalink

If your component is part of a ToolWindow, you can create a right-click menu for it by hand, adding a MouseListener to the component and creating a JMenu. Tedious, but it works. See the MetricsReloaded source (available via your PluginManager) for an example of how that is done.

--Dave Griffith


Please sign in to leave a comment.