<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344</link>
    <title>MATLAB Central Newsreader - accessing java gui from Matlab</title>
    <description>Feed for thread: accessing java gui from Matlab</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 04 Apr 2009 20:08:01 -0400</pubDate>
      <title>accessing java gui from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344#640313</link>
      <author>Todd Welti</author>
      <description>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.  Is there some way to run the Java app from Matlab and get a handle to it?</description>
    </item>
    <item>
      <pubDate>Sat, 04 Apr 2009 20:22:02 -0400</pubDate>
      <title>Re: accessing java gui from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344#640317</link>
      <author>Yair Altman</author>
      <description>&amp;gt; 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. &lt;br&gt;
&lt;br&gt;
Correct - AFAIK you cannot access a Java frame from another JVM.&lt;br&gt;
&lt;br&gt;
&amp;gt; Is there some way to run the Java app from Matlab and get a handle to it?&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt; &lt;br&gt;
&amp;nbsp;</description>
    </item>
    <item>
      <pubDate>Mon, 06 Apr 2009 16:53:01 -0400</pubDate>
      <title>Re: accessing java gui from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344#640793</link>
      <author>Todd Welti</author>
      <description>&quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &amp;lt;gr8fh9$7bc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 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. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Correct - AFAIK you cannot access a Java frame from another JVM.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Is there some way to run the Java app from Matlab and get a handle to it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt; &lt;br&gt;
&amp;gt;  &lt;br&gt;
&lt;br&gt;
Thanks, how do I run it?  </description>
    </item>
    <item>
      <pubDate>Mon, 06 Apr 2009 16:57:01 -0400</pubDate>
      <title>Re: accessing java gui from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344#640795</link>
      <author>Todd Welti</author>
      <description>&quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &amp;lt;gr8fh9$7bc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 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. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Correct - AFAIK you cannot access a Java frame from another JVM.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Is there some way to run the Java app from Matlab and get a handle to it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt; &lt;br&gt;
&amp;gt;  &lt;br&gt;
&lt;br&gt;
... the Java app is normally run from a bat file:&lt;br&gt;
&lt;br&gt;
@echo off&lt;br&gt;
java -classpath .;.\jna.jar com.hbas.asioConvGui.ASIOConvGUI &amp;gt; log.txt&lt;br&gt;
&lt;br&gt;
I tried running this direcly in Matlab, but didn't work.</description>
    </item>
    <item>
      <pubDate>Tue, 07 Apr 2009 21:24:21 -0400</pubDate>
      <title>Re: accessing java gui from Matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248344#641163</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Todd Welti&quot; &amp;lt;twelti@harman.com&amp;gt; wrote in message &lt;br&gt;
news:grdc8t$5j1$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;gr8fh9$7bc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Is there any way to access an object in a separate Java gui from &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; matlab?  I am running a Java gui (not running from Matlab) and also an &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; app in Matlab.  I would like to access the Java gui from Matlab (and &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; changel a slider value in the Java app).  I'm guessing this might be &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; impossible.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Correct - AFAIK you cannot access a Java frame from another JVM.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Is there some way to run the Java app from Matlab and get a handle to &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; it?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Yes - Matlab runs its own JVM and can run Java classes directly. You will &lt;br&gt;
&amp;gt;&amp;gt; then have access to your Java GUI and can manipulate it from within &lt;br&gt;
&amp;gt;&amp;gt; Matlab.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Yair Altman&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ... the Java app is normally run from a bat file:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; @echo off&lt;br&gt;
&amp;gt; java -classpath .;.\jna.jar com.hbas.asioConvGui.ASIOConvGUI &amp;gt; log.txt&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I tried running this direcly in Matlab, but didn't work.&lt;br&gt;
&lt;br&gt;
Open up the Help Browser using the DOC function.  In the main MATLAB &lt;br&gt;
documentation there's a chapter titled &quot;External Interfaces&quot;.  One of the &lt;br&gt;
sections of that chapter describes the steps you'll need to follow to use &lt;br&gt;
Java from within MATLAB.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

