consLeft.gridx = 0;
consLeft.gridy = 0;
completePanel.add(leftPanel, consLeft);
VerticalAlignPanel rightPanel = new VerticalAlignPanel();
GridBagConstraints consRight = new GridBagConstraints();
consRight.gridx = 1;
consRight.gridy = 0;
completePanel.add(rightPanel, consRight);
//
// buttons
//
JButton buttAdd = new JButton();
buttAdd.setText("Add");
buttAdd.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addURL();
}
});
rightPanel.add(buttAdd,1);
JButton buttDelete = new JButton();
buttDelete.setText("Delete");
buttDelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteURL();
}
});
rightPanel.add(buttDelete,1);
JButton buttClose = new JButton();
buttClose.setText("Close");
buttClose.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitForm();
}
});
rightPanel.add(buttClose,1);
// list
urlList = new JList();
urlList.setVisibleRowCount(6);
urlList.setMinimumSize(new java.awt.Dimension(40,4));