Create a right click menu on my own component?
Hi,
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.
Anyone?
Thanks,
Yossi.
请先登录再写评论。
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