Action actionEncontro = new AbstractAction("", IconFactory.createInscricao16()) {
private static final long serialVersionUID = 6896377001233184388L;
public void actionPerformed(ActionEvent e) {
Turma turma = (Turma) getTable().getValueAt(
getTable().getSelectedRow(), -1);
JComponent form = EncontroView.getInstance(turma);
Main.getInstance().buildPanel(form);
}
};
encontroButton.setAction(actionEncontro);
encontroButton.setText("Encontros");
encontroButton.setToolTipText("Mostra a lista de encontros da turma");
encontroButton.setEnabled(false);
addToolBarButton(encontroButton);
Action actionPresenca = new AbstractAction("", IconFactory.createInscricao16()) {
private static final long serialVersionUID = -7824001094065007868L;
public void actionPerformed(ActionEvent e) {
Turma turma = (Turma) getTable().getValueAt(
getTable().getSelectedRow(), -1);
JComponent form = PresencaView.getInstance(turma);
Main.getInstance().buildPanel(form);
}
};