Problem In Adding an Icon to the Label of a JCheckBox Component
<p>I try to describe an image through HTML tag as follow :</p>

<p><a href="http://www.exampledepot.com/egs/javax.swing/checkbox%5FAddIcon.html" rel="nofollow">http://www.exampledepot.com/egs/javax.swing/checkbox_AddIcon.html</a></p>

<p>If I use the following HTML tag, it works</p>

<pre><code>&lt;html&gt;&lt;table cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=file:C:\user\network-transmit-receive.png/&gt;&lt;/td&gt;&lt;td width=3&gt;&lt;td&gt;Hello World&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/html&gt;
</code></pre>

<p>However, when I use the following HTML tag, it doesn't work in Windows XP (I am not sure other Windows)</p>

<pre><code>&lt;html&gt;&lt;table cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=file:C:\user directory with space\network-transmit-receive.png/&gt;&lt;/td&gt;&lt;td width=3&gt;&lt;td&gt;Hello World&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/html&gt;
</code></pre>

<p>Since there might be possibility user directory name contains space. However can I encode the directory name, so that it is recognized by JCheckBox?</p>
