From: Jim P. <jpr...@co...> - 2010-09-15 09:03:06
|
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. |