<?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: Rich-contents log panel	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/rich-contents-log-panel/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rich-contents-log-panel</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Wed, 23 Oct 2019 09:18:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-336051</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 02 Nov 2014 18:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-336051</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-336050&quot;&gt;Daisuke&lt;/a&gt;.

@Daisuke - there is no &lt;i&gt;append&lt;/i&gt; method (by this or any other name) that I know of.

To list a Java object&#039;s methods, you can use the builtin &lt;i&gt;&lt;b&gt;methods&lt;/b&gt;&lt;/i&gt; or &lt;i&gt;&lt;b&gt;methodsview&lt;/b&gt;&lt;/i&gt; functions, or one of my utilities: &lt;i&gt;&lt;b&gt;&lt;a href=&quot;http://undocumentedmatlab.com/blog/uiinspect&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;uiinspect&lt;/a&gt;&lt;/b&gt;&lt;/i&gt; or &lt;i&gt;&lt;b&gt;&lt;a href=&quot;http://undocumentedmatlab.com/blog/checkclass&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;checkClass&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-336050">Daisuke</a>.</p>
<p>@Daisuke &#8211; there is no <i>append</i> method (by this or any other name) that I know of.</p>
<p>To list a Java object&#8217;s methods, you can use the builtin <i><b>methods</b></i> or <i><b>methodsview</b></i> functions, or one of my utilities: <i><b><a href="http://undocumentedmatlab.com/blog/uiinspect" target="_blank" rel="nofollow">uiinspect</a></b></i> or <i><b><a href="http://undocumentedmatlab.com/blog/checkclass" target="_blank" rel="nofollow">checkClass</a></b></i>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daisuke		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-336050</link>

		<dc:creator><![CDATA[Daisuke]]></dc:creator>
		<pubDate>Sun, 02 Nov 2014 18:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-336050</guid>

					<description><![CDATA[This is a cool stuff! I need to use rather text than html and am having a problem with getting the code to work. Since I need to put so many lines in the log, I thought something to append a new line would be computationally less demanding than setText (is that true?). I mean something like,
&lt;pre lang=&quot;matlab&quot;&gt;
jEditbox.append(new_text);
&lt;/pre&gt;
Would this be possible? 
Another question: Since I don&#039;t know Java, I have no clue about what kind of member functions are available. How can one know that?]]></description>
			<content:encoded><![CDATA[<p>This is a cool stuff! I need to use rather text than html and am having a problem with getting the code to work. Since I need to put so many lines in the log, I thought something to append a new line would be computationally less demanding than setText (is that true?). I mean something like,</p>
<pre lang="matlab">
jEditbox.append(new_text);
</pre>
<p>Would this be possible?<br />
Another question: Since I don&#8217;t know Java, I have no clue about what kind of member functions are available. How can one know that?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CheckboxList &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-331808</link>

		<dc:creator><![CDATA[CheckboxList &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Thu, 18 Sep 2014 10:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-331808</guid>

					<description><![CDATA[[...] is to use small icon images checked and unchecked as part of the listbox item labels. As I explained last year, listboxes (like all other Matlab uicontrols that rely on underlying Java Swing [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] is to use small icon images checked and unchecked as part of the listbox item labels. As I explained last year, listboxes (like all other Matlab uicontrols that rely on underlying Java Swing [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-329479</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 08:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-329479</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-329455&quot;&gt;Carsten&lt;/a&gt;.

@Carsten - it should work, you&#039;re probably doing something wrong. Perhaps you are updating the wrong handle, or updating the editbox&#039;s contents via Matlab not Java (this resets the Java customizations).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-329455">Carsten</a>.</p>
<p>@Carsten &#8211; it should work, you&#8217;re probably doing something wrong. Perhaps you are updating the wrong handle, or updating the editbox&#8217;s contents via Matlab not Java (this resets the Java customizations).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Carsten		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-329455</link>

		<dc:creator><![CDATA[Carsten]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 00:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-329455</guid>

					<description><![CDATA[Hello Yair,

is there a way to get rid of the vertical scrollbar? I tried to do so using
&lt;pre lang=&quot;matlab&quot;&gt;jScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_NEVER)&lt;/pre&gt;
but this has no effect.

Thanks,
Carsten]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>is there a way to get rid of the vertical scrollbar? I tried to do so using</p>
<pre lang="matlab">jScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_NEVER)</pre>
<p>but this has no effect.</p>
<p>Thanks,<br />
Carsten</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-285109</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 17 Oct 2013 19:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-285109</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-279176&quot;&gt;Holger&lt;/a&gt;.

@Holger - this is probably related to the fact thar R2013b started using Java 7, which is a major overhaul over the previous Java 6. I assume that this broke some functionality of the editbox. Since the underlying Java control is a standard &lt;a href=&quot;http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextPane.html&quot; rel=&quot;nofollow&quot;&gt;JTextPane&lt;/a&gt;, you can easily search the net for relevant reports of (and possible workarounds for) this issue. Let us know if you find something relevant.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-279176">Holger</a>.</p>
<p>@Holger &#8211; this is probably related to the fact thar R2013b started using Java 7, which is a major overhaul over the previous Java 6. I assume that this broke some functionality of the editbox. Since the underlying Java control is a standard <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextPane.html" rel="nofollow">JTextPane</a>, you can easily search the net for relevant reports of (and possible workarounds for) this issue. Let us know if you find something relevant.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-279315</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Tue, 08 Oct 2013 15:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-279315</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-278720&quot;&gt;Chris&lt;/a&gt;.

After getting some feedback on stackexchange, I have a way to dramatically improve performance. Instead of performing getText and setText, you can insert the new HTML at the end of the document in the following way
&lt;pre lang=&quot;matlab&quot;&gt;
function logMessage(jEditbox, text)
text = [text &#039;&#039;];

% Place the HTML message segment at the bottom of the editbox
Doc = jEditbox.getDocument();
jEditbox.getEditorKit().read(java.io.StringReader(text), Doc, Doc.getLength());
jEditbox.setCaretPosition(Doc.getLength());
end
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-278720">Chris</a>.</p>
<p>After getting some feedback on stackexchange, I have a way to dramatically improve performance. Instead of performing getText and setText, you can insert the new HTML at the end of the document in the following way</p>
<pre lang="matlab">
function logMessage(jEditbox, text)
text = [text ''];

% Place the HTML message segment at the bottom of the editbox
Doc = jEditbox.getDocument();
jEditbox.getEditorKit().read(java.io.StringReader(text), Doc, Doc.getLength());
jEditbox.setCaretPosition(Doc.getLength());
end
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Holger		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-279176</link>

		<dc:creator><![CDATA[Holger]]></dc:creator>
		<pubDate>Tue, 08 Oct 2013 10:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-279176</guid>

					<description><![CDATA[Hi Yair,

I was using this for some time (from older posts).
But in R2013b (all prior versions work), the hyperlink feature broke. Not completely, but the mouse cursor doesn&#039;t change to a hand when hovering over a hyperlink.

In addition the following code also does nothing:
&lt;pre lang=&#039;matlab&#039;&gt;
jHelpLinkButton = java(findjobj(hButton));
jHelpLinkButton.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.HAND_CURSOR));
&lt;/pre&gt;

When using a &quot;&lt;code&gt;com.mathworks.widgets.HyperlinkTextLabel&lt;/code&gt;&quot; (from your book), also the hand cursor doesn&#039;t appear, but at least, the label changes color when hovering.

Any idea, how I can get this working again?
An acceptable workaround would be to change the hyperlink style, so it has an alternate color when hovering over it. But I think I would have to change the default style for hyperlinks in the &lt;code&gt;HTMLEditorKit&lt;/code&gt;...]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I was using this for some time (from older posts).<br />
But in R2013b (all prior versions work), the hyperlink feature broke. Not completely, but the mouse cursor doesn&#8217;t change to a hand when hovering over a hyperlink.</p>
<p>In addition the following code also does nothing:</p>
<pre lang='matlab'>
jHelpLinkButton = java(findjobj(hButton));
jHelpLinkButton.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.HAND_CURSOR));
</pre>
<p>When using a &#8220;<code>com.mathworks.widgets.HyperlinkTextLabel</code>&#8221; (from your book), also the hand cursor doesn&#8217;t appear, but at least, the label changes color when hovering.</p>
<p>Any idea, how I can get this working again?<br />
An acceptable workaround would be to change the hyperlink style, so it has an alternate color when hovering over it. But I think I would have to change the default style for hyperlinks in the <code>HTMLEditorKit</code>&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CopyQuery &#124; Question &#38; Answer Tool for your Technical Queries		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-278723</link>

		<dc:creator><![CDATA[CopyQuery &#124; Question &#38; Answer Tool for your Technical Queries]]></dc:creator>
		<pubDate>Mon, 07 Oct 2013 14:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-278723</guid>

					<description><![CDATA[[...] to Yair Altman&#8217;s excellent post on undocumentedmatlab.com, I&#8217;ve tried to implement a GUI logging program using a rich editbox [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] to Yair Altman&#8217;s excellent post on undocumentedmatlab.com, I&#8217;ve tried to implement a GUI logging program using a rich editbox [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://undocumentedmatlab.com/articles/rich-contents-log-panel#comment-278720</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Mon, 07 Oct 2013 14:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4180#comment-278720</guid>

					<description><![CDATA[I&#039;ve implemented this log, but I had a few questions about it. &lt;a href=&quot;http://stackoverflow.com/questions/19227073/improve-performance-on-gui-log&quot; rel=&quot;nofollow&quot;&gt;I&#039;ve posted a question on stackexchange&lt;/a&gt;, and I was hoping you would weigh-in.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve implemented this log, but I had a few questions about it. <a href="http://stackoverflow.com/questions/19227073/improve-performance-on-gui-log" rel="nofollow">I&#8217;ve posted a question on stackexchange</a>, and I was hoping you would weigh-in.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
