MviewPane handle mouseclicked event

User 37df300f74

01-02-2007 21:15:56

I use MViewPane to load series of molecules. When user clicks one of structure, I would like to capture mouseClicked event and do something. I searched this forum as well as API but not luck.





Any suggestion is appreciated.


Thanks


Hongzhou

ChemAxon 7c2d26e5cf

01-02-2007 21:30:35

See MViewPopupExample among Marvin Beans examples.


http://www.chemaxon.com/marvin/examples/view-popup/MViewPopupExample.java.txt


It is demonstrates how you can add mouselistener to view canvases (by using of MViewPane.getVisibleCellComponent(int)).