Fix Tergel mess v2
This commit is contained in:
parent
61a0b623c9
commit
23cd5d4b3d
2 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -48,10 +48,15 @@ public class ProjectionHandler extends JDialog {
|
|||
this.agenda = agenda;
|
||||
try {
|
||||
competitionComboBox.getModel().setSelectedItem(agenda.getCompetition());
|
||||
} catch (NotFoundInTable ignored) {
|
||||
} catch (NotFoundInTable ignored) {}
|
||||
if (agenda.getDate() != null || agenda.getSlot() != null) {
|
||||
updateMovies();
|
||||
updateDates();
|
||||
dayComboBox.getModel().setSelectedItem(agenda.getDate());
|
||||
updateSlots();
|
||||
slotComboBox.getModel().setSelectedItem(agenda.getSlot());
|
||||
updateRooms();
|
||||
}
|
||||
dayComboBox.getModel().setSelectedItem(agenda.getDate());
|
||||
slotComboBox.getModel().setSelectedItem(agenda.getSlot());
|
||||
createUIComponents();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue