btnEditPayment = new BtnToolbar("edit.png");
btnEditPayment.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
//Payment payment = tblPayments.getSelectedPayment();
Payment payment = getSelectedPayment();
editPayment(payment);
}
});
tbMain.add(btnEditPayment);
btnDeletePayment = new BtnToolbar("remove.png");
btnDeletePayment.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
Payment payment = getSelectedPayment();
deletePayment(payment);
}
});
tbMain.add(btnDeletePayment);
}