Added new lists for viewing and selecting Artists and Stages

This commit is contained in:
2015-02-25 19:51:02 +01:00
parent c225c23d66
commit 9de7409bac
6 changed files with 146 additions and 4 deletions
+5 -4
View File
@@ -72,6 +72,9 @@ public class Window extends JFrame {
Panel tablePanel = new PanelTable();
panels.put("table", tablePanel);
Panel art_staPanel = new PanelArtSta(this);
panels.put("art_sta", art_staPanel);
//Main Panels
JPanel mainPanel = new JPanel(new BorderLayout());
centerPanel = new JPanel(new BorderLayout());
@@ -170,15 +173,13 @@ public class Window extends JFrame {
private static void changePanel()
{
if(centerPanel.getComponents().length > 0)
{
centerPanel.remove(0);
}
centerPanel.removeAll();
Panel p = panels.get(currentPanel);
p.update(getEvents());
JPanel p1 = (JPanel) p;
p1.setPreferredSize(centerPanel.getSize());
centerPanel.add(p1, BorderLayout.CENTER);
centerPanel.revalidate();
centerPanel.repaint();
p1.repaint();
}