title: Settings icons in Java Control for XPages
body: <p>I am creating Java Control for XPage using <a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Creating_a_Java_Control_in_an_NSF" rel="nofollow">this tutorial</a>. I have successfully created the control but I am unable to set icon for which would show up in the Control palette.</p>
  
  <p>My <code>xsp-config</code> file has the following snippet for icon</p>
  
  <pre><code>&lt;faces-config&gt;
      &lt;...&gt;
      &lt;component&gt;
          &lt;...&gt;
          &lt;icon&gt;
              &lt;small-icon&gt;/icons/icon16.gif&lt;/small-icon&gt;
              &lt;large-icon&gt;/icons/icon32.gif&lt;/large-icon&gt;
          &lt;/icon&gt;
      &lt;/component&gt;
  &lt;/faces-config&gt;
  </code></pre>
  
  <p>I stored my icons in folder <code>WebContent &gt; WEB-INF &gt; icons</code>. But it did not work. So I created a created <code>icon</code> folder inside <code>src</code> folder (which is where my Java class files are stored and it is added to Java build path) and stored icons there. But that didn't work either. In both cases I get a red square as icon for my control in the palette.</p>
  
  <p>How can I show icons for my Java Control and where the icons be stored for the same?</p>