title: How to determine the size of a JTextField?
body: <p>I'm doing a program involving the Pythagorean theorem, and wanted to leave a triangle in the middle, with three JTextField around three sides of it. I did it, but the problem is that when I create the JTextField and add it to the desired container, it is immense. It is a very large white rectangle that when I click to enter, get a small letter. So, my question is: How can I change the size of this JTextField to decrease it and avoid unnecessary sizes?
  P.S:.'m Using Swing and AWT library for free!
  Example of code:</p>
  
  <pre><code>Container content = window.getContentPane();
  Contaiiner grid = new JPanel();
  grid.setLayout(new GridLayout(3,3));
  grid.add(new JTextField());
  </code></pre>
  
  <p>Well, this simple code, gives to you one example of the JTextField, when i executes than (with main method and more...) the JTextField is very very big, so, i want to decrease it.</p>