Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: accessing java gui from Matlab
Date: Sat, 4 Apr 2009 20:22:02 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 11
Message-ID: <gr8fh9$7bc$1@fred.mathworks.com>
References: <gr8en1$g1v$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238876522 7532 172.30.248.37 (4 Apr 2009 20:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Apr 2009 20:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:530337


> Is there any way to access an object in a separate Java gui from matlab?  I am running a Java gui (not running from Matlab) and also an app in Matlab.  I would like to access the Java gui from Matlab (and changel a slider value in the Java app).  I'm guessing this might be impossible. 

Correct - AFAIK you cannot access a Java frame from another JVM.

> Is there some way to run the Java app from Matlab and get a handle to it?

Yes - Matlab runs its own JVM and can run Java classes directly. You will then have access to your Java GUI and can manipulate it from within Matlab.

Yair Altman
http://UndocumentedMatlab.com