There's got to be a way to do this. You want the whole contents of the
console -- exactly like it is -- in some other frame rather than a dialog.
It seems to me the console class itself doesn't have to be a JDialog, it
just has to create one -- or not. Yes, that should be possible. I will work
on it later today or tomorrow. You won't be able to get it from the
"console" command, I think. Can you specify the frame right when (or before)
you create the Viewer object? Or does it have to be able to be done later?
Give me the syntax for the method you would like. Let's do it.
Bob
On Fri, Sep 10, 2010 at 10:55 AM, Jim Procter <jproc...@compbio.dundee.ac.uk
> wrote:
> On 10/09/2010 07:00, Robert Hanson wrote:
> > Hmm. I will have to work on this over the weekend. The console extends
> > JDialog.
> bother - I had a similar issue with some of Jalview's dialogs.. I ended
> up refactoring the init code to an internal builder method that'd create
> a new dialog and set its content pane if no parent frame was given. If I
> remember correctly, you have to be careful with Input focus transfer if
> your dialog then spawns more dialogs afterwards :)
>
> > Are you looking for the entire console being subsumed into another frame?
> Yes. The refactored ScriptWindow from Jmol 11 extends JPanel, so we just
> add it and the renderer to a SplitFrame - you can see the code from
> Jalview 2.5 here :
>
>
> http://www.google.com/codesearch/p?hl=en#OHBU0s_E66s/trunk/src/jalview/gui/AppJmol.java&q=ScriptWindow%20package:http://jalview%5C.googlecode%5C.com&l=930
>
> Jim.
>
>
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers