<?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: Sliders in Matlab GUI	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sliders-in-matlab-gui</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 14 Jan 2021 23:34:27 +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/sliders-in-matlab-gui#comment-509743</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 14 Jan 2021 23:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-509743</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-509735&quot;&gt;Erik&lt;/a&gt;.

Thanks for the note Eric - you forgot the crucial call to &lt;code&gt;jTable.setLabelTable(labelTable)&lt;/code&gt; - I added it into your code snippet above.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-509735">Erik</a>.</p>
<p>Thanks for the note Eric &#8211; you forgot the crucial call to <code>jTable.setLabelTable(labelTable)</code> &#8211; I added it into your code snippet above.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Erik		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-509735</link>

		<dc:creator><![CDATA[Erik]]></dc:creator>
		<pubDate>Wed, 13 Jan 2021 12:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-509735</guid>

					<description><![CDATA[Thank you for this -- 
I don&#039;t know if this has been mentioned anywhere else before, but it could be useful to mention how to add custom labels to a jslider. I did the following for my code:
&lt;pre lang=&quot;matlab&quot;&gt;
labelTable = java.util.Hashtable;
for key = 1:N
    mLabel = &#039;Yout label here&#039;; %Matlab Char
    jLabel = javaObjectEDT(&#039;javax.swing.JLabel&#039;, mLabel); % Java JLabel
    labelTable.put(int32(key), jLabel);
end
jTable.setLabelTable(labelTable);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Thank you for this &#8212;<br />
I don&#8217;t know if this has been mentioned anywhere else before, but it could be useful to mention how to add custom labels to a jslider. I did the following for my code:</p>
<pre lang="matlab">
labelTable = java.util.Hashtable;
for key = 1:N
    mLabel = 'Yout label here'; %Matlab Char
    jLabel = javaObjectEDT('javax.swing.JLabel', mLabel); % Java JLabel
    labelTable.put(int32(key), jLabel);
end
jTable.setLabelTable(labelTable);
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-485074</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 28 Jun 2019 16:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-485074</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-484885&quot;&gt;samina&lt;/a&gt;.

@Samina - in Matlab you have a choice between web-based UI (as with App Designer) or using Java-based controls (as I&#039;ve shown in many articles on this website). In either case, if you wish to achieve professional-looking UI, consider using my professional services. More information and sample screenshots here: http://undocumentedmatlab.com/development]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-484885">samina</a>.</p>
<p>@Samina &#8211; in Matlab you have a choice between web-based UI (as with App Designer) or using Java-based controls (as I&#8217;ve shown in many articles on this website). In either case, if you wish to achieve professional-looking UI, consider using my professional services. More information and sample screenshots here: <a href="http://undocumentedmatlab.com/development" rel="ugc">http://undocumentedmatlab.com/development</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: samina		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-484885</link>

		<dc:creator><![CDATA[samina]]></dc:creator>
		<pubDate>Thu, 27 Jun 2019 07:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-484885</guid>

					<description><![CDATA[hi everyone!
I am developing my app using App designer but not satisfy with the look .. I want my app look like professional UIDesign( Flat design) .In order to fulfill my own requirement I searched for the tools like I did for C# and WPF (Infragistic tool , Bunifu controls) but failed .... so can anyone help me in this regard...hoping that I will find some help]]></description>
			<content:encoded><![CDATA[<p>hi everyone!<br />
I am developing my app using App designer but not satisfy with the look .. I want my app look like professional UIDesign( Flat design) .In order to fulfill my own requirement I searched for the tools like I did for C# and WPF (Infragistic tool , Bunifu controls) but failed &#8230;. so can anyone help me in this regard&#8230;hoping that I will find some help</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robi		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466611</link>

		<dc:creator><![CDATA[Robi]]></dc:creator>
		<pubDate>Sun, 10 Mar 2019 16:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-466611</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466569&quot;&gt;Robi&lt;/a&gt;.

This topic is already discussed elsewhere: https://groups.google.com/forum/#!topic/jquery-ui-dev/o1CImjd8Wbg
But the solution already was on my hand:
- &lt;code&gt;Src.getValueIsAdjusting&lt;/code&gt; appears to only be true if the user interacted with the slider (and at the _first_ setLowValue/setHighValue call, even if the value hasn&#039;t changed)
- only trigger global tool parameter update if &lt;code&gt;Src.getValueIsAdjusting=false&lt;/code&gt; (that&#039;s equivalent to uicontrol(&#039;Style&#039;,&#039;slider&#039;) callback)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466569">Robi</a>.</p>
<p>This topic is already discussed elsewhere: <a href="https://groups.google.com/forum/#!topic/jquery-ui-dev/o1CImjd8Wbg" rel="nofollow ugc">https://groups.google.com/forum/#!topic/jquery-ui-dev/o1CImjd8Wbg</a><br />
But the solution already was on my hand:<br />
&#8211; <code>Src.getValueIsAdjusting</code> appears to only be true if the user interacted with the slider (and at the _first_ setLowValue/setHighValue call, even if the value hasn&#8217;t changed)<br />
&#8211; only trigger global tool parameter update if <code>Src.getValueIsAdjusting=false</code> (that&#8217;s equivalent to uicontrol(&#8216;Style&#8217;,&#8217;slider&#8217;) callback)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466585</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 10 Mar 2019 12:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-466585</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466569&quot;&gt;Robi&lt;/a&gt;.

@Robi - you could try to trap &lt;code&gt;MouseDraggedCallback&lt;/code&gt; and &lt;code&gt;MouseClickedCallback&lt;/code&gt;, which would only trigger if the user interacts with the slider using the mouse (also trap &lt;code&gt;KeyPressedCallback&lt;/code&gt; if you want to trap arrow key-clicks etc.). 

Alternatively, you can keep your existing mechanisms and simply add a re-entrancy check - several alternatives are discussed here: &lt;a href=&quot;http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466569">Robi</a>.</p>
<p>@Robi &#8211; you could try to trap <code>MouseDraggedCallback</code> and <code>MouseClickedCallback</code>, which would only trigger if the user interacts with the slider using the mouse (also trap <code>KeyPressedCallback</code> if you want to trap arrow key-clicks etc.). </p>
<p>Alternatively, you can keep your existing mechanisms and simply add a re-entrancy check &#8211; several alternatives are discussed here: <a href="http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy" target="_blank" rel="nofollow">http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robi		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-466569</link>

		<dc:creator><![CDATA[Robi]]></dc:creator>
		<pubDate>Sun, 10 Mar 2019 11:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-466569</guid>

					<description><![CDATA[Hi,
I&#039;d love to use the RangeSlider in my app.
I came up with 2 solutions:

1) Using StateChangeCallback:
&lt;pre lang=&quot;matlab&quot;&gt;
function rangeSliderStateChange
%RANGESLIDERSTATECHANGE
   fh = figure(&#039;NumberTitle&#039;,&#039;off&#039;,&#039;Name&#039;,&#039;StateChangeCallback&#039;);
   jRangeSlider = com.jidesoft.swing.RangeSlider(0,100,20,70);  % min,max,low,high
   jhgRangeSlider = javacomponent(jRangeSlider, [0,0,200,80], fh);
   jhgRangeSlider.StateChangedCallback = @slide;
end

function slide(Src,EvtData )
%SLIDE
   if Src.getValueIsAdjusting
      fprintf(&#039;Dragging to %d\n&#039;,Src.getValue)
   else
      fprintf(&#039;Stopped at %d\n&#039;,Src.getValue)
   end
end
&lt;/pre&gt;
This has the limitation that I cannot determine if the left or right knob was dragged, which is OK for me.

2) Using PropertyChangeCallback:
&lt;pre lang=&quot;matlab&quot;&gt;
function rangeSliderPropertyChange
%RANGESLIDERPROPERTYCHANGE
   fh = figure(&#039;NumberTitle&#039;,&#039;off&#039;,&#039;Name&#039;,&#039;PropertyChangeCallback&#039;);
   jRangeSlider = com.jidesoft.swing.RangeSlider(0,100,20,70);  % min,max,low,high
   jhgRangeSlider = javacomponent(jRangeSlider, [0,0,200,80], fh);
   jhgRangeSlider.PropertyChangeCallback = @slide;
end

function slide(Src,EvtData )
%SLIDE
   if strcmp(EvtData.getPropertyName,&#039;lowValue&#039;)
      fprintf(&#039;Ended low at %d\n&#039;,Src.getLowValue)
   elseif strcmp(EvtData.getPropertyName,&#039;highValue&#039;)
      fprintf(&#039;High at %d\n&#039;,Src.getHighValue)
   %else all kinds of properties I am totally not interested in
   end
end
&lt;/pre&gt;
This may have more overhead because there are many events fired we need to filter out.

Both these solutions do have the drawback that the change events are also fired if the knob values are changed programmatically, which could easily end up in an infinite loop.
I think the point is, that the sliders do not have an ActionCallback like most of the other swing controls.
Can you think of a solution which only fires events if the user interacts with the knobs?

Background is that I like to design my apps in a more or less global MVC pattern: One or more parameter objects with setObservable properties. A listener updates all uicontrols. When the user enters something into an edit textbox for numeric content, for example, the uicontrol callback converts to numeric and tries to update the parameter object. The parameter object checks the value range and updates the corresponding property, which fires the event which updates the uicontrol (-&#062; infinite loop for the RangeSlider).]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;d love to use the RangeSlider in my app.<br />
I came up with 2 solutions:</p>
<p>1) Using StateChangeCallback:</p>
<pre lang="matlab">
function rangeSliderStateChange
%RANGESLIDERSTATECHANGE
   fh = figure('NumberTitle','off','Name','StateChangeCallback');
   jRangeSlider = com.jidesoft.swing.RangeSlider(0,100,20,70);  % min,max,low,high
   jhgRangeSlider = javacomponent(jRangeSlider, [0,0,200,80], fh);
   jhgRangeSlider.StateChangedCallback = @slide;
end

function slide(Src,EvtData )
%SLIDE
   if Src.getValueIsAdjusting
      fprintf('Dragging to %d\n',Src.getValue)
   else
      fprintf('Stopped at %d\n',Src.getValue)
   end
end
</pre>
<p>This has the limitation that I cannot determine if the left or right knob was dragged, which is OK for me.</p>
<p>2) Using PropertyChangeCallback:</p>
<pre lang="matlab">
function rangeSliderPropertyChange
%RANGESLIDERPROPERTYCHANGE
   fh = figure('NumberTitle','off','Name','PropertyChangeCallback');
   jRangeSlider = com.jidesoft.swing.RangeSlider(0,100,20,70);  % min,max,low,high
   jhgRangeSlider = javacomponent(jRangeSlider, [0,0,200,80], fh);
   jhgRangeSlider.PropertyChangeCallback = @slide;
end

function slide(Src,EvtData )
%SLIDE
   if strcmp(EvtData.getPropertyName,'lowValue')
      fprintf('Ended low at %d\n',Src.getLowValue)
   elseif strcmp(EvtData.getPropertyName,'highValue')
      fprintf('High at %d\n',Src.getHighValue)
   %else all kinds of properties I am totally not interested in
   end
end
</pre>
<p>This may have more overhead because there are many events fired we need to filter out.</p>
<p>Both these solutions do have the drawback that the change events are also fired if the knob values are changed programmatically, which could easily end up in an infinite loop.<br />
I think the point is, that the sliders do not have an ActionCallback like most of the other swing controls.<br />
Can you think of a solution which only fires events if the user interacts with the knobs?</p>
<p>Background is that I like to design my apps in a more or less global MVC pattern: One or more parameter objects with setObservable properties. A listener updates all uicontrols. When the user enters something into an edit textbox for numeric content, for example, the uicontrol callback converts to numeric and tries to update the parameter object. The parameter object checks the value range and updates the corresponding property, which fires the event which updates the uicontrol (-&gt; infinite loop for the RangeSlider).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-462141</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 15 Feb 2019 10:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-462141</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-453998&quot;&gt;Bogdan&lt;/a&gt;.

The slider thumb color is typically set by the Look&amp;Feel and cannot be changed, except by changing the L&amp;F&#039;s standard control color (which is not advisable). 
To update the Look-&amp;-Feel in Matlab GUI, look here: &lt;a href=&quot;http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel&lt;/a&gt;.

A few L&amp;Fs may honor the settable internal &lt;a href=&quot;http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingaJSliderLookandFeel.htm&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;Slider.thumb&lt;/code&gt;&lt;/a&gt; client property, but I&#039;m not sure which L&amp;Fs and under which circumstances (for example, it might depend on your Operating System and/or the Matlab release [which affects the version of Java]):
&lt;pre lang=&quot;matlab&quot;&gt;
jSlider = javaObjectEDT(javax.swing.JSlider(0,100,20));
jColor = java.awt.Color(1.0,0.0,0.0);  % red
jSlider.putClientProperty(&#039;Slider.thumb&#039;,jColor);
[hjSlider,hContainer] = javacomponent(jSlider, [10,10,100,20], gcf);
&lt;/pre&gt;
but as I said above, many L&amp;Fs ignore this property. Discovering how to proceed from here is a pure Java issue, unrelated to Matlab, so I leave this up to you and other readers to figure out on Java forums. Here are 2 places to get you started: &lt;a href=&quot;https://coderanch.com/t/338457/java/JSlider-knob-color&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;link1&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/questions/12293982/change-the-jslider-look-and-feel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;link2&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-453998">Bogdan</a>.</p>
<p>The slider thumb color is typically set by the Look&#038;Feel and cannot be changed, except by changing the L&#038;F&#8217;s standard control color (which is not advisable).<br />
To update the Look-&#038;-Feel in Matlab GUI, look here: <a href="http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel" target="_blank" rel="nofollow">http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel</a>.</p>
<p>A few L&#038;Fs may honor the settable internal <a href="http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingaJSliderLookandFeel.htm" target="_blank" rel="nofollow"><code>Slider.thumb</code></a> client property, but I&#8217;m not sure which L&#038;Fs and under which circumstances (for example, it might depend on your Operating System and/or the Matlab release [which affects the version of Java]):</p>
<pre lang="matlab">
jSlider = javaObjectEDT(javax.swing.JSlider(0,100,20));
jColor = java.awt.Color(1.0,0.0,0.0);  % red
jSlider.putClientProperty('Slider.thumb',jColor);
[hjSlider,hContainer] = javacomponent(jSlider, [10,10,100,20], gcf);
</pre>
<p>but as I said above, many L&#038;Fs ignore this property. Discovering how to proceed from here is a pure Java issue, unrelated to Matlab, so I leave this up to you and other readers to figure out on Java forums. Here are 2 places to get you started: <a href="https://coderanch.com/t/338457/java/JSlider-knob-color" target="_blank" rel="nofollow">link1</a>, <a href="https://stackoverflow.com/questions/12293982/change-the-jslider-look-and-feel" target="_blank" rel="nofollow">link2</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jmarco		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460341</link>

		<dc:creator><![CDATA[jmarco]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 21:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-460341</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460332&quot;&gt;jmarco&lt;/a&gt;.

@Yair Altman - Thanks for the quick response. I&#039;ll investigate the color properties some more. I tried changing the look and feel using the directions on your website, but each one (Metal, Nimbus, Motif, and GTK) has an unfilled slider.
I found an option that looks promising: &lt;a href=&quot;http://www.java2s.com/Tutorial/Java/0240__Swing/JSliderClientPropertiesJSliderisFilled.htm&quot; rel=&quot;nofollow&quot;&gt;modifying the client properties to set &quot;isFilled&quot; to true&lt;/a&gt;.

Interestingly, in the application I&#039;m working on, I don&#039;t get a filled JSlider, but as I was putting together an example to show how it didn&#039;t work, I got a filled JSlider!

So, here&#039;s the working example:
&lt;pre lang=&quot;matlab&quot;&gt;
f = figure;
jSlider = javaObjectEDT(javax.swing.JSlider(0,100,20));
jSlider.putClientProperty(&#039;JSlider.isFilled&#039;, java.lang.Boolean.TRUE)
[jsl,hsl] = javacomponent(jSlider);
&lt;/pre&gt;

Now I just have to figure out how to make it work with my application.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460332">jmarco</a>.</p>
<p>@Yair Altman &#8211; Thanks for the quick response. I&#8217;ll investigate the color properties some more. I tried changing the look and feel using the directions on your website, but each one (Metal, Nimbus, Motif, and GTK) has an unfilled slider.<br />
I found an option that looks promising: <a href="http://www.java2s.com/Tutorial/Java/0240__Swing/JSliderClientPropertiesJSliderisFilled.htm" rel="nofollow">modifying the client properties to set &#8220;isFilled&#8221; to true</a>.</p>
<p>Interestingly, in the application I&#8217;m working on, I don&#8217;t get a filled JSlider, but as I was putting together an example to show how it didn&#8217;t work, I got a filled JSlider!</p>
<p>So, here&#8217;s the working example:</p>
<pre lang="matlab">
f = figure;
jSlider = javaObjectEDT(javax.swing.JSlider(0,100,20));
jSlider.putClientProperty('JSlider.isFilled', java.lang.Boolean.TRUE)
[jsl,hsl] = javacomponent(jSlider);
</pre>
<p>Now I just have to figure out how to make it work with my application.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460336</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 21:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5827#comment-460336</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460332&quot;&gt;jmarco&lt;/a&gt;.

This is not a settable property of the standard Swing &lt;code&gt;JSlider&lt;/code&gt;. You need to modify the &lt;a href=&quot;http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingaJSliderLookandFeel.htm&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;slider&#039;s look-&amp;-feel properties&lt;/a&gt;. These include several color properties, so play around a bit. 
To update the Look-&amp;-Feel in Matlab GUI, look here: &lt;a href=&quot;http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/sliders-in-matlab-gui#comment-460332">jmarco</a>.</p>
<p>This is not a settable property of the standard Swing <code>JSlider</code>. You need to modify the <a href="http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingaJSliderLookandFeel.htm" target="_blank" rel="nofollow">slider&#8217;s look-&#038;-feel properties</a>. These include several color properties, so play around a bit.<br />
To update the Look-&#038;-Feel in Matlab GUI, look here: <a href="http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel" target="_blank" rel="nofollow">http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel</a>.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
