Action actionVisita = new AbstractAction("", IconFactory.createVisitaAtiva16()) {
private static final long serialVersionUID = -2777494056951012296L;
public void actionPerformed(ActionEvent e) {
Usuario u = (Usuario) getTable().getValueAt(
getTable().getSelectedRow(), -1);
JComponent form = VisitaForm.getInstance(u);
Main.getInstance().buildPanel(form);
}
};
visitaButton.setAction(actionVisita);
visitaButton.setText("Registrar Visita");
visitaButton.setToolTipText("Registrar Visita");
addToolBarButton(visitaButton);
visitaButton.setEnabled(false);
Action actionInscreve = new AbstractAction("", IconFactory.createInscricao16()) {
private static final long serialVersionUID = 1092188857990595907L;
public void actionPerformed(ActionEvent e) {
Usuario u = (Usuario) getTable().getValueAt(
getTable().getSelectedRow(), -1);
JComponent form = InscricaoView.getInstance(u);
Main.getInstance().buildPanel(form);
}
};