title: Is there a function to find a component layout position?
body: <p>If I have a component inside a panel with a border layout (it could be any other layout), is there a way to get the component's placement in the panel layout?</p>
  <p>For example, I add a label to a panel that has a border layout</p>
  <pre><code>panel.add (label, BorderLayout.NORTH);
  </code></pre>
  <p>In this case, what I want to get is the orientation of the Label inside the layout (which would be &quot;North&quot;)</p>