Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!w40g2000yqd.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: Tue, 21 Apr 2009 08:42:15 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <8c2c62b6-88c3-4640-84a8-af1528ff6d7a@w40g2000yqd.googlegroups.com>
References: <83292fe2-d12d-402a-8f5c-8c24f9752d9b@c36g2000yqn.googlegroups.com> 
	<gskm3i$b0c$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 1240328535 24711 127.0.0.1 (21 Apr 2009 15:42:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 21 Apr 2009 15:42:15 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w40g2000yqd.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:534420


On Apr 21, 5:44=A0pm, "Malcolm Lidierth" <ku.ca....@htreidil.mloclam>
wrote:
> Could you use javacomponent to set up the object, and set a callback to r=
espond to the changed value?

Hi Malcolm Lidierth,

I had no clue about javacomponent  existence (no wonder it's
undocumented ), thanks for providing the feedback :)

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 )

I've checked out a possible usage of "waitfor" for this purpose :

waitfor(JavaObj,some_field,value)

It doesn't seem to work :(

Maybe someone of matlab developers would be so nice to share with us
his thoughts on this subject ... :)