From ebf4d1a0fb0f7e00e5aff798270dd2124070886a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 24 Apr 2008 18:09:16 +0000 Subject: [PATCH] right-align the help menu git-svn-id: http://trooper/svn/projects/jSite/trunk@758 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/MainWindow.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index ed2b1db..1653e79 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -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); -- 2.7.4