title: Getting coordinates of a JTextField in a JFrame
body: <p>I've added a <code>JTextField</code> in a <code>JFrame</code> using the <code>BorderLayout</code>.<br>
  Now I want to know the location of the <code>JTextField</code>.</p>
  
  <p>I used <code>getX()</code> and <code>getLocation()</code>, but both gives me <code>0</code>, which is not the right answer.<br>
  So how do I get that location?</p>