super("First Imaginary Bank");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
{
JScrollPane tpane;
JPanel dpane, p;
dpane = new JPanel(new BorderLayout());
{
GridBagLayout layout = new GridBagLayout();
GridBagConstraints gbc = new GridBagConstraints();
JLabel lbl;
gbc.weightx = 1.0;
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.insets = new Insets(3, 3, 3, 3);
p = new JPanel(layout);
lbl = new JLabel(TellerApp.getLabel("LBL_CUST_ID"));
layout.setConstraints(lbl, gbc);
p.add(lbl);
gbc.gridx = 1;
custid = new JTextField(10);
custid.setToolTipText(TellerApp.getTooltip("TT_CUST_ID"));
lbl.setLabelFor(custid);
layout.setConstraints(custid, gbc);
p.add(custid);
gbc.gridx = 2;
lbl = new JLabel(TellerApp.getLabel("LBL_SSN"));
layout.setConstraints(lbl, gbc);
p.add(lbl);
gbc.gridx = 3;
social = new JTextField(11);
social.setToolTipText(TellerApp.getTooltip("TT_SSN"));
lbl.setLabelFor(social);
layout.setConstraints(social, gbc);
p.add(social);
gbc.gridy = 1;
gbc.gridx = 0;
lbl = new JLabel(TellerApp.getLabel("LBL_FIRST_NAME"));
layout.setConstraints(lbl, gbc);
p.add(lbl);
gbc.gridx = 1;
firstName = new JTextField(20);
firstName.setToolTipText(TellerApp.getTooltip("TT_FIRST_NAME"));
lbl.setLabelFor(firstName);
layout.setConstraints(firstName, gbc);
p.add(firstName);
gbc.gridx = 2;
lbl = new JLabel(TellerApp.getLabel("LBL_LAST_NAME"));
layout.setConstraints(lbl, gbc);
p.add(lbl);
gbc.gridx = 3;
lastName = new JTextField(10);
lastName.setToolTipText(TellerApp.getTooltip("TT_LAST_NAME"));
lbl.setLabelFor(lastName);
layout.setConstraints(lastName, gbc);
p.add(lastName);
dpane.add(p, BorderLayout.NORTH);
}
{
JTree tree = new JTree(new BankModel());
tree.addTreeSelectionListener(this);
tpane = new JScrollPane(tree);
}
{
JSplitPane sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
tpane, dpane);
getContentPane().add(sp);
}
}
pack();