right-align the help menu
[jSite2.git] / src / net / pterodactylus / jsite / gui / MainWindow.java
index ed2b1db..1653e79 100644 (file)
@@ -47,7 +47,7 @@ import net.pterodactylus.util.swing.SwingUtils;
 
 /**
  * Defines the main window of the application.
- * 
+ *
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  * @version $Id$
  */
@@ -73,14 +73,14 @@ public class MainWindow extends JFrame implements I18nable {
 
        /** The about menu. */
        private I18nMenu aboutMenu;
-       
+
        /** The tabbed project pane. */
        private JTabbedPane projectPane;
 
        /**
         * Creates a new main window that redirects all actions to the given swing
         * interface.
-        * 
+        *
         * @param swingInterface
         *            The swing interface to receive all actions
         */
@@ -101,7 +101,7 @@ public class MainWindow extends JFrame implements I18nable {
 
        /**
         * Sets the text of the status bar.
-        * 
+        *
         * @param text
         *            The text of the status bar
         */
@@ -117,7 +117,11 @@ public class MainWindow extends JFrame implements I18nable {
                return contentPane;
        }
 
-       
+       /**
+        * Returns the currently selected project.
+        *
+        * @return The currently selected project
+        */
        public Project getSelectedProject() {
                return null;
        }
@@ -156,7 +160,10 @@ public class MainWindow extends JFrame implements I18nable {
                        languageMenu.add(languageAction);
                }
 
-               menuBar.add(new JPanel());
+               JPanel spacerPanel = new JPanel();
+               spacerPanel.setOpaque(false);
+               menuBar.add(spacerPanel);
+
                aboutMenu = new I18nMenu("mainWindow.menu.help");
                menuBar.add(aboutMenu);