From: David ‘Bombe’ Roden Date: Thu, 24 Apr 2008 18:09:16 +0000 (+0000) Subject: right-align the help menu X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ebf4d1a0fb0f7e00e5aff798270dd2124070886a;p=jSite2.git right-align the help menu git-svn-id: http://trooper/svn/projects/jSite/trunk@758 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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);