Setting The Layout in a Content Pane
This is the code I have that places the content into an internal frame:
<code>
txtBox = new JTextArea();
txtBox.setEditable(false);
txtBox.setPreferredSize(new Dimension(500, 40000));
txtBox.setRows(5000);
scrollPane = new JScrollPane(txtBox);
BoxLayout paneLayout = new BoxLayout(getContentPane(), BoxLayout.Y_AXIS);
getContentPane().setLayout(paneLayout);
//getContentPane().setLayout(new FlowLayout());
getContentPane().add(scrollPane);
commandBox = new JTextField();
commandBox.setEditable(true);
getContentPane().add(commandBox);
Clear = new JButton("CLEAR TEXT");
Clear.setActionCommand("ClearBox");
Clear.addActionListener(this);
Clear.setToolTipText("CLEARS TEXT");
getContentPane().add(Clear);
Start = new JButton("START PROCESS");
Start.setActionCommand("StartProcessBox");
Start.addActionListener(this);
Start.setToolTipText("STARTS THE PROCESS");
getContentPane().add(Start);
End = new JButton("CLOSE WINDOW");
End.setActionCommand("closeWindow");
End.addActionListener(this);
End.setToolTipText("CLOSES THE WINDOW");
getContentPane().add(End);
</code>
This intenral frame basically simulates a terminal shell with a text area for the output and a smaller text box to input commands. There are also the three buttons that are placed within the content pane. The text area and command text box automatically resize when the internal frame is resized just as they should. What I need to know how to do is place the buttons exactly where I want them below the text area and command box. By default, they just show up directly under the two text boxes. They are stacked on top of each otehr veritcally and offset to the right. I need them to line up horizontally one after the other and the first one has to be flush with the left side of the internal frame. I have tried using the setLocation command but that has not done anything for me at all.
I hope my description is clear enough. Thanks in advance for any help that you can give.

