title: How to put two components to a JPanel with BorderLayout?
body: <p>What basically i'm trying to do is to add 2 pictures, Side-By-Side in the center of a JPanel and a JLabel to the right of the JPanel, So I was told to set the layout of the JPanel as BorderLayout and to add the pictures with BorderLayout.CENTER and the JLabel with BorderLayout.EAST.</p>
  
  <pre><code>JPanel panel = new JPanel();
  panel.SetLayout(new BorderLayout(100,100));
  
  panel.add(pic1,BorderLayout.CENTER);
  panel.add(pic2,BorderLayout.CENTER);
  panel.add(new JLabel("Example"), BorderLayout.EAST);
  </code></pre>
  
  <p>actually the result is that the pictures are ON EACH OTHER TO THE LEFT of the JPanel
  and the JLabel is to the right of the JPanel.</p>
  
  <p>Thank you very much for your help! </p>