title: JCheckBox with Image
body: <p>How can I have a checkbox group with an image?</p>
  
  <p>I use:</p>
  
  <pre><code>for (String testata : listaTestate) {
          JCheckBox checkbox = new JCheckBox();
          ImageIcon imgTestata = new ImageIcon("src/img/"+testata+".png");
          checkbox.setName(testata);
          checkbox.setBackground(new Color(194, 169, 221));
          checkbox.setSelected(true);
          testate.add(checkbox);
          JLabel label = new JLabel(imgTestata);
          label.setBackground(new Color(194, 169, 221));
          label.setPreferredSize(new Dimension(500, 50));
          testate.add(label);
      }
  </code></pre>
  
  <p>but there is a lot of space between the ImageIcon and the JCheckBox.</p>