From: David ‘Bombe’ Roden Date: Sat, 24 May 2008 17:00:51 +0000 (+0200) Subject: remove upper panel from code X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6c0c49884491f8a50df7788ccd17fabd13a4fa78;p=jSite2.git remove upper panel from code --- diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index 8748315..28554c8 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -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); } //