title: How do I fill the remaining portions in the button?
body: <p>I have been trying the round button but there is a problem here. Currently I am getting a button like this :</p>
  
  <p><img src="https://i.stack.imgur.com/taHDe.jpg" alt="enter image description here"></p>
  
  <p>What I want to do is fill the remaining portions in the button square. How do I do this ? This is the code that painted this button.</p>
  
  <pre class="lang-java prettyprint-override"><code>import javax.swing.*;
  import java.awt.*;
  
  class Tester extends JButton {
  
          public Tester(String label) {
              super(label);
              setContentAreaFilled(false);
              Dimension size = this.getPreferredSize();
              size.width = size.height = Math.max(size.width,size.height);
              this.setPreferredSize(size);
  
          }
  
          @Override
          public void paintComponent(Graphics g) {System.out.println("Inside the paintComponent method");
              if (getModel().isArmed()) {
                  g.setColor(Color.lightGray);
              } else {
                  g.setColor(getBackground());
              }
              g.fillOval(0,0,getSize().width-1,getSize().height-1);
              System.out.println(getSize().width);
              System.out.println(getSize().height);
              super.paintComponent(g);
          }
  
  
          public static void main(String args[]) {
              JFrame fr = new JFrame();
              JPanel p = new JPanel();
              JButton button = new Tester("Click Me !");
              button.setBackground(Color.GREEN);
              p.add(button);
              fr.add(p);
              fr.setVisible(true);
              fr.setSize(400,400);    
              fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          }
  }
  </code></pre>
  
  <p>How do I fill the remaining portions in the button ?</p>