title: Remove default padding in JTextPane on Windows
body: <p>For displaying information on a Java Swing GUI I use a mixture of <code>JLabel</code> components and <code>JTextPanes</code>.</p>
  
  <p>As you can see in the following image, all labels are <code>JLabels</code> except for the one in the bottom right corner which is marked red and yellow. This one's a <code>JTextPane</code>, cause I don't know the text length before rendering and it has to wrap (which is not working in a <code>JLabel</code>, right?).</p>
  
  <p><img src="https://i.stack.imgur.com/H9Q2A.png" alt="Different Rendering on Windows and Mac">
  <br/></p>
  
  <p>The left column is aligned right and has a right-margin of 5, the right column is aligned left with zero margin.</p>
  
  <p>In Eclipse WindowBuilder and on Windows 7 rendering, the <code>JTextPane</code> obviously has a small padding which I can't remove.</p>
  
  <p>Surprisingly, this padding isn't shown on my Mac (Mountain Lion) and the <code>JTextPane</code> is aligned perfectly well.</p>
  
  <p>Is there any way to achieve the same aligned look on Windows and on Mac? And why on earth does the <code>JTextPane</code> component has this annoying padding on windows?</p>