Hi Bob, thanks for the quick reply. On 20/08/2010 17:33, Robert Hanson wrote: > Jim, I think you are just not initializing Jmol quite correctly. This > is probably the first time anyone has created the applet within > another applet. We might have to set something special up for that. > Somehow you have to get the "-applet" tag into the commandLineOptions. That'll be it ! I think I saw the '-applet' being passed in the org.jmol.applet.AppletJmol code - and wondered if I might have to put it in :) Thanks very much for the pointer! > String fullname = htmlName + "__" + Math.random() + "__"; > > JmolViewer viewer = JmolViewer.allocateviewer(yourApplet, null, > fullName, documentBase, codeBase, "-applet", null) > > The reason for the unique applet name is so that all the applets in a > given session have unique IDs. Mostly this just relates to > synchronization, but then also you can test to make sure that specific > applets are really unloaded when the page closes -- and you don't have > a memory leak in your applet somewhere. ok - I think I hit that problem in the application, and started putting in a unique viewer ID (jalview needs that anyway for its own view synchronization). On the whole Jmol is working ok with Jalview - but I've still got one or two issues that I'll need some advice with... I'll start another thread with a more appropriate name in a tick..
cheers! Jim. -- ------------------------------------------------------------------- J. B. Procter (JALVIEW/ENFIN) Barton Bioinformatics Research Group Phone/Fax:+44(0)1382 388734/345764 http://www.compbio.dundee.ac.uk The University of Dundee is a Scottish Registered Charity, No. SC015096. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers