[Biojava-l] Jmol help

Andreas Prlic andreas at sdsc.edu
Sun Jan 10 12:20:28 UTC 2010

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


On Sat, Jan 9, 2010 at 6:36 PM, Andy Lu <andylu0320 at gmail.com> 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  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l

More information about the Biojava-l mailing list