title: JTextField margin doesnt work with border
body: <p>I have a <code>JTextField</code> and i want to setMargin. But when i set any border, it doesn' t properly work. It' s margin function doesn't work.
  This is my code;</p>
  
  <pre><code>import java.awt.Color;
  import java.awt.Insets;
  import java.io.IOException;
  
  import javax.swing.BorderFactory;
  import javax.swing.JOptionPane;
  import javax.swing.JTextField;
  
  public class ImageField {
  
  public static void main(String[] args) throws IOException {
  
      JTextField textField = new JTextField();
      textField.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
      textField.setMargin(new Insets(0, 20, 0, 0));
      JOptionPane.showMessageDialog(null, textField, "",
              JOptionPane.PLAIN_MESSAGE);
      }
  }
  </code></pre>
  
  <p>If i commant this line, it works</p>
  
  <pre><code> //textField.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
  </code></pre>