<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Matlab-Java interface using a static control	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=matlab-java-interface-using-static-control</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 26 Sep 2016 10:44:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-389260</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 26 Sep 2016 10:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-389260</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-389257&quot;&gt;Tom&lt;/a&gt;.

@Tom - you are correct. This was simply a typo (&lt;code&gt;jButton&lt;/code&gt; instead of &lt;code&gt;hButton&lt;/code&gt;). I corrected the main text accordingly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-389257">Tom</a>.</p>
<p>@Tom &#8211; you are correct. This was simply a typo (<code>jButton</code> instead of <code>hButton</code>). I corrected the main text accordingly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-389257</link>

		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Mon, 26 Sep 2016 10:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-389257</guid>

					<description><![CDATA[Why you getting a handle if you don´t use it?

&lt;pre lang=&quot;matlab&quot;&gt;
% Assign a Matlab callback
hButton = handle(jButton, &#039;CallbackProperties&#039;);
set(jButton, &#039;ActionPerformedCallback&#039;, @myCallback);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Why you getting a handle if you don´t use it?</p>
<pre lang="matlab">
% Assign a Matlab callback
hButton = handle(jButton, 'CallbackProperties');
set(jButton, 'ActionPerformedCallback', @myCallback);
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Abdullah		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-346711</link>

		<dc:creator><![CDATA[Abdullah]]></dc:creator>
		<pubDate>Sun, 15 Mar 2015 23:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-346711</guid>

					<description><![CDATA[So, I am trying the following:

I added a listener to a Simulink block. 

When trying to execute a public function of my JAR file within the listener, I get an error.

I tried to use a timer to see if that would solve the issue. However, it didn&#039;t work.

Any clues?]]></description>
			<content:encoded><![CDATA[<p>So, I am trying the following:</p>
<p>I added a listener to a Simulink block. </p>
<p>When trying to execute a public function of my JAR file within the listener, I get an error.</p>
<p>I tried to use a timer to see if that would solve the issue. However, it didn&#8217;t work.</p>
<p>Any clues?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-301312</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 03 Dec 2013 16:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-301312</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-301304&quot;&gt;Jai Naresh&lt;/a&gt;.

@Jai - take a look at JMI: &lt;a target=&quot;_blank&quot; href=&quot;http://undocumentedmatlab.com/blog/jmi-java-to-matlab-interface/&quot; rel=&quot;nofollow&quot;&gt;http://undocumentedmatlab.com/blog/jmi-java-to-matlab-interface/&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-301304">Jai Naresh</a>.</p>
<p>@Jai &#8211; take a look at JMI: <a target="_blank" href="http://undocumentedmatlab.com/blog/jmi-java-to-matlab-interface/" rel="nofollow">http://undocumentedmatlab.com/blog/jmi-java-to-matlab-interface/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jai Naresh		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-301304</link>

		<dc:creator><![CDATA[Jai Naresh]]></dc:creator>
		<pubDate>Tue, 03 Dec 2013 16:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-301304</guid>

					<description><![CDATA[Hi,
 I am trying to launch matlab model and control its execution through Java Interface. Please let me know if their are any ways to do this.

Any response will help.

Thanks,
jai Naresh]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
 I am trying to launch matlab model and control its execution through Java Interface. Please let me know if their are any ways to do this.</p>
<p>Any response will help.</p>
<p>Thanks,<br />
jai Naresh</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-190276</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 17 Apr 2013 10:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-190276</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-190269&quot;&gt;nikhil&lt;/a&gt;.

@Nikhil - try adding &lt;code&gt;C:\Users\x_shirod\.swt\lib\win32\x86_64\&lt;/code&gt; to your &lt;i&gt;librarypath.txt&lt;/i&gt; file:
&lt;pre lang=&#039;matlab&#039;&gt;edit(&#039;librarypath.txt&#039;)&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-190269">nikhil</a>.</p>
<p>@Nikhil &#8211; try adding <code>C:\Users\x_shirod\.swt\lib\win32\x86_64\</code> to your <i>librarypath.txt</i> file:</p>
<pre lang='matlab'>edit('librarypath.txt')</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nikhil		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-190269</link>

		<dc:creator><![CDATA[nikhil]]></dc:creator>
		<pubDate>Wed, 17 Apr 2013 09:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-190269</guid>

					<description><![CDATA[Hello,

I am trying to open a UI created in Java SWT through Matlab.
But I am getting following error..
&lt;pre lang=&#039;matlab&#039;&gt;
Java exception occurred:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
	no swt-win32-3833 in java.library.path
	no swt-win32 in java.library.path
	Native Library C:\Users\x_shirod\.swt\lib\win32\x86_64\swt-win32-3833.dll already loaded in another classloader
	Can&#039;t load library: C:\Users\x_shirod\.swt\lib\win32\x86_64\swt-win32.dll
&lt;/pre&gt;

Can any one help me in this...

thanking you in advance.

--
Nikhil]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I am trying to open a UI created in Java SWT through Matlab.<br />
But I am getting following error..</p>
<pre lang='matlab'>
Java exception occurred:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
	no swt-win32-3833 in java.library.path
	no swt-win32 in java.library.path
	Native Library C:\Users\x_shirod\.swt\lib\win32\x86_64\swt-win32-3833.dll already loaded in another classloader
	Can't load library: C:\Users\x_shirod\.swt\lib\win32\x86_64\swt-win32.dll
</pre>
<p>Can any one help me in this&#8230;</p>
<p>thanking you in advance.</p>
<p>&#8212;<br />
Nikhil</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: George Brennan		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-116934</link>

		<dc:creator><![CDATA[George Brennan]]></dc:creator>
		<pubDate>Fri, 26 Oct 2012 17:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-116934</guid>

					<description><![CDATA[Well done. 

I would add that as you are passing the Matlab instantiated app object around couldn&#039;t you change the hMap to public and access it without the file I/O?

Although getters/setters are probably a more acceptable route.]]></description>
			<content:encoded><![CDATA[<p>Well done. </p>
<p>I would add that as you are passing the Matlab instantiated app object around couldn&#8217;t you change the hMap to public and access it without the file I/O?</p>
<p>Although getters/setters are probably a more acceptable route.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-112874</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 18:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-112874</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-112871&quot;&gt;Rob Cranfill&lt;/a&gt;.

@Rob - thanks for the correction. I fixed the article accordingly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-112871">Rob Cranfill</a>.</p>
<p>@Rob &#8211; thanks for the correction. I fixed the article accordingly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Cranfill		</title>
		<link>https://undocumentedmatlab.com/articles/matlab-java-interface-using-static-control#comment-112871</link>

		<dc:creator><![CDATA[Rob Cranfill]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 15:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1917#comment-112871</guid>

					<description><![CDATA[I think there&#039;s a typo in the original code - in the 2nd code block, the first one after the heading &quot;Using a callback switchyard function&quot;. It says
&lt;pre lang=&quot;matlab&quot;&gt;get(triggerButton, &#039;ActionPerformedCallback&#039;,@TriggerCallback);
&lt;/pre&gt;but I&#039;m pretty sure that should be
&lt;pre lang=&quot;matlab&quot;&gt;set(triggerButton, &#039;ActionPerformedCallback&#039;,@TriggerCallback);  % set, not get
&lt;/pre&gt;

At least, the first one doesn&#039;t work for me, and the second one does. (I&#039;m using Matlab 2012a, but I don&#039;t think that&#039;s the issue.)

Thanks for lots of great Matlab help!

/rob]]></description>
			<content:encoded><![CDATA[<p>I think there&#8217;s a typo in the original code &#8211; in the 2nd code block, the first one after the heading &#8220;Using a callback switchyard function&#8221;. It says</p>
<pre lang="matlab">get(triggerButton, 'ActionPerformedCallback',@TriggerCallback);
</pre>
<p>but I&#8217;m pretty sure that should be</p>
<pre lang="matlab">set(triggerButton, 'ActionPerformedCallback',@TriggerCallback);  % set, not get
</pre>
<p>At least, the first one doesn&#8217;t work for me, and the second one does. (I&#8217;m using Matlab 2012a, but I don&#8217;t think that&#8217;s the issue.)</p>
<p>Thanks for lots of great Matlab help!</p>
<p>/rob</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
