Hi Andy, Not sure what you mean - you mean you want you want to create a menu in a frame, which also contains a Jmol panel? Probably the easiest solution is to create a JMenu with JMenuItems, add actionListeners to them and these can trigger a script in Jmol.
Have a look at this tutorial http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html Andreas On Sat, Jan 9, 2010 at 6:36 PM, Andy Lu <[email protected]> wrote: > Hi, does anyone know how to add menu listener in JMol through JMol script? > > I tried using this: > > viewer.evalString ("set debugScript;"); > viewer.evalString ("set ScriptCallback spacefill ;"); > > But is there a way to make the above to an "if" statement? Like if I click > the "ball and stick" option in the menu, then something happens? > > Thanks! > _______________________________________________ > Biojava-l mailing list - [email protected] > http://lists.open-bio.org/mailman/listinfo/biojava-l > _______________________________________________ Biojava-l mailing list - [email protected] http://lists.open-bio.org/mailman/listinfo/biojava-l
