add(_scrollPane, BorderLayout.WEST);
/* Insert a north panel that contains the Parent and New buttons.
*/
JPanel toppanel = new JPanel();
toppanel.setBorder(new EmptyBorder(0,1,0,1));
toppanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 1, 0));
toppanel.add(_parentButton);
_parentButton.setText(PARENT_DIRECTORY_LABEL);
_parentButton.addActionListener(this);
toppanel.add(_newButton);
_newButton.setText(NEW_DIRECTORY_LABEL);
_newButton.addActionListener(this);
add(toppanel, BorderLayout.NORTH);
/* Insert a panel in the south for the textfield and the
* Approve and Cancel buttons.
*/
JPanel southpanel = new JPanel();
southpanel.setLayout(new BorderLayout());
JPanel topsouth = new JPanel();
topsouth.add(new JLabel("Pathname:"));
topsouth.add(_locationField);
_locationField.setText(_location);
_locationField.setActionCommand("locationField");
_locationField.addActionListener(this);
southpanel.add(topsouth, BorderLayout.NORTH);
JPanel bottomsouth = new JPanel();
bottomsouth.setLayout(new FlowLayout(FlowLayout.RIGHT, 1, 0));
bottomsouth.setBorder(new EmptyBorder(1,1,0,1));
bottomsouth.add(_approveButton);
bottomsouth.add(_cancelButton);
_approveButton.setText(_approveButtonText);
_cancelButton.setText(CANCEL_LABEL);
_approveButton.addActionListener(this);