Witam,mam problem z rozmieszczeniem elementów na JFrame moj kod
JFrame frame=new JFrame();
// Create a component to add to the frame
JComponent comp1= slider;
JComponent comp2= fileTree;
JComponent comp3= splitPane;
JComponent comp4=MenuLookDemo.menuBar;
frame.getContentPane().add(comp1, BorderLayout.NORTH);
frame.getContentPane().add(comp2,BorderLayout.CENTER);
frame.getContentPane().add(comp3,BorderLayout.SOUTH);
frame.getContentPane().add(comp4,BorderLayout.WEST);
chciałbym aby automatycznie po ustawiał mi elementy tak jak trzeba czyli tak jak jest w orginale, proszę o pomoc