title: What is the best way to put spaces between objects? Can a Swing JSeparator object be an invisible separator?
body: <p>I'm trying to put two buttons inside a panel using Swing widgets. Inside the NetBeans IDE, my <code>JSeparator</code> <code>border</code> property is set to <code>(No border)</code> in the properties pane.</p>
  
  <p>Nevertheless a line appears. This is not what I would expect from a separator object. Am I doing something wrong? Coming from a background in Delphi, and C# WinForms, I expect to find some oddities in Swing. But how exactly do you make a transparent gap of a particular size, between two buttons in a panel? Do I have to play with layouts and avoid the <code>JSeparator</code>?</p>
  
  <p><strong>Update:</strong> It should be trivial to do this with a layout and without any separator object. So how do you do that? I am looking into the NetBeans layout customizer and properties inspector and finding no way to do it. (Answer: Layouts with Insets, instead of separators.)</p>