Add new menu item to MViewPane default popup menu

User 818520b6b8

15-12-2005 12:17:44

Hi,





I want to add a new menu item to the MViewPane default popup menu.





I saw your sample "MViewPopupExample" but it creates a custom popup menu to replace the default one.





What I want to do is add another menu item to the default one. But I don't know how to get the default popup menu from the JComponent.





Any help will be greatly appreciated.





Thanks.

ChemAxon 7c2d26e5cf

16-12-2005 22:44:19

The current Marvin do not support to insert your own menu items into the builtin menu.


But there are a few sub menus (like "View", "Help" or "Save Image") that are accessible for the developers to insert them into theirs own (popup) menus.


See the following example: http://www.chemaxon.com/marvin/examples/view-popup/MViewPopupExample.java.txt


By the way, we plan to create a fully customizable menu to Marvin.