title: GUI library for handling primitives and arrays/collections of primitives
body: <p>I have built many <em>many</em> GUI:s and I don't like to have dependencies to libraries so I end up doing much of the basics myself. One thing that I end up doing over and over again is mapping primitives to GUI components. </p>
  
  <p>For example if it is a <code>boolean</code> I often use <code>JCombobox</code> with two options (<code>"true"</code>, <code>"false"</code>) and if it is <code>int</code> I use a <code>JTextField</code>. Much of the work is to go from and to text...</p>
  
  <p>Some example mappings:</p>
  
  <ul>
  <li><code>int</code> or <code>Integer</code> => <code>JTextField</code> or <code>JSpinner</code></li>
  <li><code>boolean</code> => <code>JTextField</code>, <code>JComboBox</code> or <code>JCheckBox</code></li>
  <li><code>int[]</code> => <code>JList</code> (with "add" field and "remove" buttons)</li>
  <li><code>Set&lt;Byte&gt;</code> => probably the same as arrays</li>
  </ul>
  
  <hr>
  
  <p>So, to the questions: </p>
  
  <ul>
  <li>Is there already a library that have mappings like this or do I need to "invent" it again?</li>
  <li>I have seen <a href="http://code.google.com/p/jfg/" rel="noreferrer">jfg</a> that uses refection and SWT as frontend (you can implement a new frontend using swing but that is exactly what I'm trying to avoid). Is there a simular library that uses swing and refection?</li>
  </ul>