title: HashMap for classes, not objects
body: <p>I want to assign ui-Classes to a model-class each. By this I want to find the class where to store the date from the user interface. Please don't refer to the design but to my question on a <code>HashMap</code>'s usage ;-)</p>
  
  <p>I am aware of the class <code>HashMap</code> but only used it to assign objects to other objects.</p>
  
  <p>How can I manage to link always two CLASSES with each other?</p>
  
  <pre><code>public static final HashMap&lt;class,class&gt; componentMap=new HashMap&lt;class, class&gt;();
  componentMap.put(ToolPanel.class, ToolComponent.class);
  </code></pre>
  
  <p>The code above does not work...</p>