From: Peter Murray-R. <pm...@ca...> - 2003-06-10 21:48:33
|
At 20:26 09/06/2003 +0200, E.L. Willighagen (Egon) wrote: >On Monday 09 June 2003 19:11, Miguel wrote: > > > How do I use JMol from a java application? > > > > This is going to be the beginning of a long conversation :) > > > > > I am developing an application which requires a rendering window for > > > displaying small molecules and isosurfaces. Rather than build > > > everything from scratch I would like to use JMol as a component of the > > > application I am building. > > > > > > Has anyone done such a thing? > > > > To the best of my knowledge, noone has done such a thing. > >Peter MR has done that in Jumbo... he uses Jmol for display of 3D structures >from within the Jumbo software... It was fairly straightforward - the method was to pass a CML string to the CMLReader in Jmol. It's fairly one-way - Jmol can be launched but cannot communicate back to JUMBO. The main area that needs to be explored is the event model. Then all these tools - Jmol, JCP, CDK etc can communicate >Is opens up a separate Jmol window >though... Doesn't have to - I originally hacked it as a JPanel, but I like seeing the molecules large :-). I have wondered whether JEdit could be a useful infrastructure for a graphical tool as it already has window docking, etc. Best P. |