I try to describe an image through HTML tag as follow :
http://www.exampledepot.com/egs/javax.swing/checkbox_AddIcon.html
If I use the following HTML tag, it works
<html><table cellpadding=0><tr><td><img src=file:C:\user\network-transmit-receive.png/></td><td width=3><td>Hello World</td></tr></table></html>
However, when I use the following HTML tag, it doesn't work in Windows XP (I am not sure other Windows)
<html><table cellpadding=0><tr><td><img src=file:C:\user directory with space\network-transmit-receive.png/></td><td width=3><td>Hello World</td></tr></table></html>
Since there might be possibility user directory name contains space. However can I encode the directory name, so that it is recognized by JCheckBox?