From: Mark Proulx on
I'm building a GUI that incorporates a uitable. Each row of the table corresponds to a trace on a plot. Each such trace has associated with it a large amount of data - too much to display in the table.

I want to place at the end of each table row a pushbutton that, when pressed, opens a separate dialog box containing the detailed information associated with the trace. Is it possible to designate a uitable ColumnFormat that would yield such a device?

If this is not feasible, a credible alternative would be to allow the user to double-click on the row so as to activate the trace information dialog. Is this possible?

A third option would be a uicontext menu associated with each row that would be activated by right-clicking in the row. Is this possible?

Thanks in advance for any help you can provide.
From: Walter Roberson on
Mark Proulx wrote:
> I'm building a GUI that incorporates a uitable. Each row of the table
> corresponds to a trace on a plot. Each such trace has associated with
> it a large amount of data - too much to display in the table.
>
> I want to place at the end of each table row a pushbutton that, when
> pressed, opens a separate dialog box containing the detailed information
> associated with the trace. Is it possible to designate a uitable
> ColumnFormat that would yield such a device?

Perhaps if you used ColumnFormat logical, supplied logical false for the data,
let it create checkbuttons for it, set the ColumnEditable for it, and provide
a CellEditCallback that detected that the value was now true and which one and
opened the appropriate dialog.

There does not appear to be a documented ColumnFormat that supports
pushbuttons. undocumentedmatlab.com talks about JTables and what can be done
at the java level.
From: Mark Proulx on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hu3sm4$90j$1(a)canopus.cc.umanitoba.ca>...
> Mark Proulx wrote:
> > I'm building a GUI that incorporates a uitable. Each row of the table
> > corresponds to a trace on a plot. Each such trace has associated with
> > it a large amount of data - too much to display in the table.
> >
> > I want to place at the end of each table row a pushbutton that, when
> > pressed, opens a separate dialog box containing the detailed information
> > associated with the trace. Is it possible to designate a uitable
> > ColumnFormat that would yield such a device?
>
> Perhaps if you used ColumnFormat logical, supplied logical false for the data,
> let it create checkbuttons for it, set the ColumnEditable for it, and provide
> a CellEditCallback that detected that the value was now true and which one and
> opened the appropriate dialog.
>
> There does not appear to be a documented ColumnFormat that supports
> pushbuttons. undocumentedmatlab.com talks about JTables and what can be done
> at the java level.

Thanks...that is the general direction I was heading; just figured it wouldn't hurt to sweep in the corners for prior art...