Action actionVisita = new AbstractAction("", IconFactory
.createVisita16()) {
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 actionInscreveLista = new AbstractAction("", IconFactory
.createFilaEspera16()) {
private static final long serialVersionUID = 1092188857990595907L;
public void actionPerformed(ActionEvent e) {
Usuario u = (Usuario) getTable().getValueAt(
getTable().getSelectedRow(), -1);
JComponent form = FilaInscricaoCursoView.getInstance(u);
Main.getInstance().buildPanel(form);
}
};
listaEsperaButton.setAction(actionInscreveLista);
listaEsperaButton.setText("Fila de Inscri��o");
listaEsperaButton
.setToolTipText("Insere o usu�rio na fila de inscri��o de um curso");
listaEsperaButton.setEnabled(false);
addToolBarButton(listaEsperaButton);
Action actionInscreve = new AbstractAction("", IconFactory
.createInscreverCurso16()) {
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);
}
};