Fix for changing to different panel on data change.

After data has been edited, the current panel is now updated.
This commit is contained in:
2015-02-26 20:38:57 +01:00
parent 9ee421b792
commit 3ece3588e6
9 changed files with 25 additions and 25 deletions
+6 -6
View File
@@ -53,7 +53,7 @@ public class MenuBar extends JMenuBar {
{
Agenda a = new Agenda();
w.setAgenda(a);
Window.updatePanel("table");
Window.updatePanel();
}
}
});
@@ -63,7 +63,7 @@ public class MenuBar extends JMenuBar {
open.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
w.getAgenda().loadAgenda();
Window.updatePanel("table");
Window.updatePanel();
}
});
@@ -72,7 +72,7 @@ public class MenuBar extends JMenuBar {
save.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
w.getAgenda().saveAgenda();
Window.updatePanel("table");
Window.updatePanel();
}
});
@@ -108,21 +108,21 @@ public class MenuBar extends JMenuBar {
JMenuItem timeline = new JMenuItem("Timeline");
timeline.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Window.updatePanel("timeline");
Window.changePanel("timeline");
}
});
JMenuItem table = new JMenuItem("Table");
table.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Window.updatePanel("table");
Window.changePanel("table");
}
});
JMenuItem art_sta = new JMenuItem("Artists and Stages");
art_sta.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Window.updatePanel("art_sta");
Window.changePanel("art_sta");
}
});