1
0
Fork 0

Fix Tergel mess v2

This commit is contained in:
Ethanell 2021-01-12 15:31:30 +01:00
parent 61a0b623c9
commit 26c1fe4a57
2 changed files with 2 additions and 3 deletions

View file

@ -52,7 +52,7 @@ public class GUI extends JFrame implements ActionListener {
setIconImage(img.getImage());
this.renderMenu();
new Agenda(agendaPanel, this.currentPage, this.currentCompetition);
agenda = new Agenda(agendaPanel, this.currentPage, this.currentCompetition);
previousButton.addActionListener(this);
nextButton.addActionListener(this);
HCButton.addActionListener(this);

View file

@ -48,8 +48,7 @@ public class ProjectionHandler extends JDialog {
this.agenda = agenda;
try {
competitionComboBox.getModel().setSelectedItem(agenda.getCompetition());
} catch (NotFoundInTable ignored) {
}
} catch (NotFoundInTable ignored) {}
dayComboBox.getModel().setSelectedItem(agenda.getDate());
slotComboBox.getModel().setSelectedItem(agenda.getSlot());
createUIComponents();