remove upper panel from code
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 17:00:51 +0000 (19:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 17:00:51 +0000 (19:00 +0200)
src/net/pterodactylus/jsite/gui/MainWindow.java

index 8748315..28554c8 100644 (file)
@@ -409,14 +409,10 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
         */
        private void initComponents() {
                super.getContentPane().add(statusBar, BorderLayout.PAGE_END);
-
-               /* TODO - remove upper panel */
-               JPanel upperPanel = new JPanel(new BorderLayout(12, 12));
-               getContentPane().add(upperPanel, BorderLayout.CENTER);
                contentPane.setBorder(new EmptyBorder(12, 12, 12, 12));
 
                projectPane = new JTabbedPane(SwingConstants.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
-               upperPanel.add(projectPane, BorderLayout.CENTER);
+               contentPane.add(projectPane, BorderLayout.CENTER);
 
                projectOverviewPanel = new Box(BoxLayout.PAGE_AXIS);
                projectOverviewPanel.setName(I18n.get("mainWindow.pane.overview.title"));
@@ -427,9 +423,6 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
                addProjectButton.setAlignmentX(0.5f);
                projectOverviewPanel.add(addProjectButton);
                projectOverviewPanel.add(Box.createVerticalGlue());
-
-               // JPanel lowerPanel = new JPanel(new BorderLayout(12, 12));
-               // getContentPane().add(lowerPanel, BorderLayout.CENTER);
        }
 
        //