title: How to reset JLabel
body: <p>I am trying to reset an array of JLabels. There are images on the top of the labels so when i press a button the labels are supposed to be reset. I tried to do it like that </p>
  
  <pre><code> for(int i=0; i&lt;desks.length; i++)
    {
      desks[i].setText("");
      rightPanel.add(desks[i]);
    }
  </code></pre>
  
  <p>so if anyone have an idea it would be great.cheers.</p>