title: How to get the (x,y) coordinates of JButton
body: <p>Is there a method to get coordinates in the (x,y) format for a Jbutton similar to the pt.distance() method. The jbutton utilizes setLayout(null) and setBounds(x,y,0,0).
  How would I compare the results of a pt.distance() and Jbutton(x,y)?</p>
  
  <p>Lastly, how is (x,y) calculated?</p>
  
  <pre><code> Point pt = evt.getPoint();
      double u = pt.distance((double)x,(double)y);
      double k = st1.getAlignmentX();
      double p = st1.getAlignmentY();
      if(u &gt; ){ // u has to be measured to (x,y) value of jbutton
      tim.setDelay(500);
      }
      if(u &lt; ){
      tim.setDelay(100);
      }
  </code></pre>