title: JTextField margins
body: <p>I want to add margin to a TextField.</p>
  
  <p>Current effect / Desired Effect:</p>
  
  <p><a href="https://i.stack.imgur.com/r32be.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r32be.png" alt="Current Effect"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Q11mf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q11mf.png" alt="Desired Effect with 10px left margin"></a></p>
  
  <p>As you can see, i want to add 10px left margin to JTextField.</p>
  
  <p>Current code:</p>
  
  <pre><code>textField_host.setBorder(
      BorderFactory.createCompoundBorder(
          BorderFactory.createLineBorder(Color.DARK_GRAY),
          BorderFactory.createEmptyBorder(0, 20, 0, 0 )
      )
  );
  </code></pre>
  
  <p>How to achieve that? Thank you.</p>