Hi Bob - sorry I didn't get back to you yesterday...

On 14/09/2010 01:12, Robert Hanson wrote:
> Jim, I did some more streamlining. The way to get the app console now 
> is simply:
>
> AppConsole a = AppConsole(viewer, externalContainer, enabledButtons);
>
> Same for the applet, but without the enabledButtons:
>
> AppletConsole a = AppletConsole(viewer, externalContainer);
>
>
> See what you think.

I think its great :)   Much simpler, and fits well with the common 
architecture I use for the Jmol binding in the applet and application 
versions of Jalview. I still had to add a listener to the 
externalContainer in order to make sure the (J)Panel containing the 
console was displayed when when it was made visible by Jmol, but that's 
far more elegant than my original 'proxy everything' solution.

The only bit of fancy footwork now is to get the Jmol console to fit 
nicely in a window that's a little too small for it, but that's partly 
up to the user - since they can easily increase the window size 
themselves. There is one inconsistency, however. Unlike AppConsole, the 
AppletConsole doesn't have a hide or close button. Is there something I 
should be doing to make one appear ?

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.


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to