Posted by
Joachim Wesner on
May 07, 2008; 5:34pm
URL: http://imagej.273.s1.nabble.com/detect-motion-across-frames-tp3696278p3696289.html
Hi Curtis,
thanx for the pointers. Actually, if the recent addition Wayne made
regarding adding
Checkbox groups (jn an mcro) are also directly available in a Java plugin
(I assume so, I I need
to look up the daily source code to see how it´s implemented) it will
already help a lot
cleaning up some of my dialogs!
Cheers
Joachim
ImageJ Interest Group <
[hidden email]> schrieb am 07.05.2008 18:14:14:
> Hi guys,
>
> A couple of points:
>
> 1) If you use a Java plugin, you can do pretty much whatever you want.
> Create your GenericDialog, add the components, then use the methods at
the
> java.awt level such as getComponents(), remove() and add() as well as
your
> own layout manager to reorganize things however you like. For an example,
> check out this method I wrote for adding scroll bars to a GenericDialog:
<
>
https://skyking.microscopy.wisc.
> edu/trac/java/browser/trunk/loci/plugins/Util.java#L343
> >.
>
> 2) You can put Swing components in an AWT frame, so adding a JTable to a
> Dialog should be no problem as long as it does not need to appear on top
of
> an overlapping AWT component. See Sun's venerable article for details: <
>
http://java.sun.com/products/jfc/tsc/articles/mixing/>.
>
> -Curtis
>
> On Wed, May 7, 2008 at 9:21 AM, Unruh, Jay <
[hidden email]>
> wrote:
>
> > One option might be to use the JTable as sort of a spreadsheet entry
table
> > rather than a dialog with multiple components. Unfortunately, that
would
> > require implementing the JDialog rather than the Dialog class.
> >
> > Jay
> >
> > -----Original Message-----
> > From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> > Joachim Wesner
> > Sent: Wednesday, May 07, 2008 3:23 AM
> > To:
[hidden email]
> > Subject: Antwort: Re: macro dialog interface
> >
> > Hi Michael,
> >
> > 2 bad! I used addPanel on GenericDialog myself and know of it´s
> > limitations.
> >
> > However, "intermediately complex" plugins easily have more configurable
> > options so that GenericDialogs quickly become too high to fit on
smaller
> > screens.
> >
> > I also would find it VERY useful if one could come up with an updated
> > version of GenericDialog that makes 2D placing the dialog elements (so
at
> > least on the Java level) more convenient without loosing the advantages
of
> > it. THAT WOULD BE GREAT!
> >
> > Joachim
> >
> > ImageJ Interest Group <
[hidden email]> schrieb am 07.05.2008
> > 10:13:12:
> >
> > > Hi Winnok,
> > >
> > > no, sorry, you can't. You could have several checkboxes in one line
if
> > > you write a PlugIn or PlugInFilter and use the addPanel method of
> > > GenericDialog.
> > > Or you completely write a java.awt.Dialog yourself.
> > >
> > > There is a disadvantage of having your own Panel with checkboxes -
> > > ImageJ knows nothing about them.
> > > - You cannot use the getNexBoolean() method to read the state
> > > of the checkbox
> > > - The state of the checkbox cannot be set in a macro (and not
> > > recorded by the Macro Recorder)
> > >
> > > Michael
> > > ________________________________________________________________
> > >
> > > On 7 May 2008, at 09:55, Winnok De Vos (ugent) wrote:
> > >
> > > > Dear all
> > > >
> > > > I have a small question of rather practical and esthetical nature:
> > > > Is it possible to put options and checkboxes etc in a dialog next
to
> > > > instead of below each other with macro language?
> > > > Many thanks in advance.
> > > > Kind regards
> > > > Winnok
> >
> >
> > ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit
http://www.messagelabs.
>
com/email______________________________________________________________________
> >
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________