Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!postnews.google.com!q16g2000yqg.googlegroups.com!not-for-mail
From: stasgold <stasgold@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to notify Matlab about Java object change in Matlab Java
Date: Wed, 22 Apr 2009 00:43:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 25
Message-ID: <1d4ae0ab-639c-4ca4-8b8f-7172e1f7d8f1@q16g2000yqg.googlegroups.com>
References: <83292fe2-d12d-402a-8f5c-8c24f9752d9b@c36g2000yqn.googlegroups.com> 
	<8c2c62b6-88c3-4640-84a8-af1528ff6d7a@w40g2000yqd.googlegroups.com> 
	<gsku0m$dg8$1@fred.mathworks.com>
NNTP-Posting-Host: 84.228.121.104
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1240386189 4292 127.0.0.1 (22 Apr 2009 07:43:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 22 Apr 2009 07:43:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q16g2000yqg.googlegroups.com; posting-host=84.228.121.104; 
	posting-account=Gx6xxQoAAACD6GWfheeLWgAvJRIjiIWt
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) 
	Gecko/2009032609 Firefox/3.0.8,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:534616


On Apr 21, 7:59=A0pm, "Yair Altman" <altmany...@gmailDEL.comDEL> wrote:
> > It looks I will use it in the case I won't find a way to set a Matlab
> > callback from standard java JFrame container ( instead of embedding
> > swing components into Matlab figure )
>
> You can set Matlab callbacks for any Java object (including your JFrame) =
as follows:
>
> hObject =3D handle(jObject,'callbackProperties'); =A0% jObject is your ja=
va object reference
> set(hObject,'WidowIconifiedCallback',@myMatlabFcn); =A0% for example
>
> To see the list of all supported callbacks etc., you can use my UIINSPECT=
 (http://www.mathworks.com/matlabcentral/fileexchange/17935) or FINDJOBJ (h=
ttp://www.mathworks.com/matlabcentral/fileexchange/14317) submissions on th=
e File Exchange.
>
> Yair Altmanhttp://UndocumentedMatlab.com

Thanks Yair,

Your post helped me big way. I just wonder how your tools are not yet
a part of standard Matlab distribution ...

UndocumentedMatlab.com is bookmarked as well :) Keep up the good work.