title: JPanel Design issue
body: <p>I have Form on which i am drawing oval on mouseClick Event. This works Fine for me. The Circles are painted. But When i Minimize the Form and Again Maximize it the Panel gets Refreshed and Circles are removed (i.e Panel is left Blank).</p>
  
  <p>Code is :
  I have a JFrame on which there is a Jpanel named jPanel1, on this panel circles are drawn.</p>
  
  <pre><code>private void jPanel1MouseClicked(java.awt.event.MouseEvent evt) {
          count += 1;
          if (count &lt;= clients) {
              drawCircle(evt.getX() - (radius / 2), evt.getY() - (radius / 2));
          }
      }
  
      public void drawCircle(int x, int y) {
          Graphics g = jPanel1.getGraphics();
          g.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
          g.setColor(Color.BLACK);
          g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);
      }
  </code></pre>