From: Miguel <mi...@jm...> - 2006-05-26 16:07:55
|
> I'm working on some software that incorporates Jmol within a larger > applet. It pretty much follows what's done in Integration.java. > > I have two questions: > > 1. How can I enable the popup menu within Jmol itself? Jmol itself does not manage the event handler for popup events. There wer= e a number of reasons for this, many of which are probably not valid anymore. It should probably be rethought after we drop support for 1.1 JVMs at the= end of 2006. But, that does not help you in the interim ... You need to create a JmolStatusListener object that will receive notification of the popup event and then tell the popup to show itself. Look at src/org/jmol/applet/Jmol.java for an example. > 2. Is there an easy way that I can incorporate Jmol's menus within > the menu bar of my applet? Not sure what you are asking here. > (Basically I want the Jmol popup menu to work as in the stand-alone > example as run by the jmol script.) Miguel |