is there a way to make a two-column GenericDialog ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

is there a way to make a two-column GenericDialog ?

Albert Cardona
Hi all,

Is there any way to make all text and numeric fields, check-boxes and
pulldown menus to appear in two or more columns, so that the window can
fit within the height of the screen?

Thanks.


--
Albert Cardona
Molecular Cell Developmental Biology
University of California Los Angeles
Tel +1 310 2067376
http://www.pensament.net/java/
http://www.mcdb.ucla.edu/Research/Hartenstein/
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to make a two-column GenericDialog ?

christophe leterrier
I'm backing Albert on this one... Specially concerning macro programming
of several column dialog boxes (I'm still java-dumb).

Christophe


Albert Cardona wrote:

> Hi all,
>
> Is there any way to make all text and numeric fields, check-boxes and
> pulldown menus to appear in two or more columns, so that the window
> can fit within the height of the screen?
>
> Thanks.
>
>
> --
> Albert Cardona
> Molecular Cell Developmental Biology
> University of California Los Angeles
> Tel +1 310 2067376
> http://www.pensament.net/java/
> http://www.mcdb.ucla.edu/Research/Hartenstein/

--
-- Christophe LETERRIER -------------------

Etudiant en thèse                
Equipe Dynamique des Récepteurs Neuronaux
Laboratoire de Neurobiologie
ESPCI-CNRS UMR 7637
10, rue Vauquelin 75231 Paris Cedex 05

Tel 01 40 79 51 84
Fax 01 40 79 47 67
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to make a two-column GenericDialog ?

dscho
Hi,

On Fri, 28 Oct 2005, christophe leterrier wrote:

> I'm backing Albert on this one... Specially concerning macro programming of
> several column dialog boxes (I'm still java-dumb).

It would be probably relatively easy to do that automatically: if the
dialog would get out of proportion (for example, height / width ratio of
3 / 1, or height is larger than 0.9 * screen height), it could introduce
another pane (and if all else fails, add a horizontal scrollbar).

Unfortunately, I am quite busy right now, so I can't go about doing it
myself.

Ciao,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to make a two-column GenericDialog ?

Wayne Rasband
In reply to this post by Albert Cardona
> Is there any way to make all text and numeric fields, check-boxes
> and pulldown menus to appear in two or more columns, so
> that the window can fit within the height of the screen?

You can have checkboxes appear in two or more columns. The Analyze>Set
Measurements dialog box is an example.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to make a two-column GenericDialog ?

Albert Cardona
In reply to this post by Albert Cardona
Wayne,

I'd be nice to have an automatic multi-column management when the
dialog has too many items to fit in the screen.

Of course one can always make several dialogs, but then that is
unconvenient when most of the given options don't have to change at
all, particularly after they have been set the first time the dialog
was called. Further each user has a different screen resolution, so
it's hard to foresee when the dialog will have the "OK" button beyond
the screen.

A quick and dirty fix would be to put the whole panel in a ScrollPane
with automatic bars, and limit the height of the window to the screen
height.

Also I noted the GenericDialog is deaf to "ESC" for canceling, which
would be convenient.

Albert
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to make a two-column GenericDialog ?

dscho
Hi,

On Sat, 29 Oct 2005, Albert Cardona wrote:

> Also I noted the GenericDialog is deaf to "ESC" for canceling, which
> would be convenient.

Note that a fix for that is already in ImageJA.

Ciao,
Dscho