From: bourrik <b@mail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to add a new property to a handle?
Message-ID: <ef537ba.6@webcrossing.raydaftYaTP>
Date: Tue, 17 Apr 2007 13:51:10 -0400
References: <ef537ba.1@webcrossing.raydaftYaTP> <ev3nli$g8b$1@canopus.cc.umanitoba.ca> <ef537ba.3@webcrossing.raydaftYaTP> <ef537ba.4@webcrossing.raydaftYaTP> <ef537ba.5@webcrossing.raydaftYaTP>
Lines: 36
NNTP-Posting-Host: 82.235.150.156
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:403800



Yair Altman wrote:
>
>
> I've found out that when you add new properties using
> schema.prop(),
> they are visible in get(handle(h)) but not in get(h), although
> being
> available for use in both cases. So, in my code, I simply expose
> handle(h).
>
> Another limitation I've found is that neither inspect(h) nor
> inspect(handle(h)) show user-defined properties - only the original
> (factory) ones. Not a biggy, this one.
>
> The function (UICOMPONENT) is now ready and posted on the
> File-Exchange, as promised: <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14583>
> Anyone interested in the details is welcome to look inside this
> m-file. In my humble opinion, it's an important enhancement to
> uicontrol() & javacomponent(), but I'm biased...
>
> Comments & feedback welcome.
>
> Yair Altman

Hi !

You did a very good job on this one ! It's great to be able to add
java components like this.

Now I'd like to add a JTable to a figure, but I can't figure out how
to do it properly. A JTable needs some input args either to define
data and headers, or at least to tell Java how many rows and columns
to display. How do you use such a syntax with uicomponent ?

Thanks and congratulations again !