title: Bubble Shooter, Drawing Bubbles
body: <p>I try to make a bubble shooter game and I have problem with drawing bubbles on MyPanel which extend JPanel. Class bubble(extend JButton) has method paintComponent:</p>
  
  <pre><code>public void paintComponent(Graphics g){
      Graphics2D g2d = (Graphics2D) g;
      RenderingHints qualityHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
      qualityHints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
      g2d.setRenderingHints(qualityHints);
      g2d.setColor(c);
      g2d.fillOval(this.x,this.y,this.r, this.r);
  }
  </code></pre>
  
  <p>How I should make constructor of MyPanel and method paint(); in MyPanel class, if I want to display Bubbles in 20 columns, 10 rows?</p>