X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FMainWindow.java;h=d4924d06747ff77afecf5a95ebbc53cd968feee5;hb=1dafe911e9a6abc56567c0d378382edb4ad20de2;hp=1d536c85313b73ff99b3313d755cfcd3e906f5de;hpb=086aff15fcd35b2dfed9d64b24e5b7dacd8fb684;p=jSite2.git
diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java
index 1d536c8..d4924d0 100644
--- a/src/net/pterodactylus/jsite/gui/MainWindow.java
+++ b/src/net/pterodactylus/jsite/gui/MainWindow.java
@@ -62,7 +62,7 @@ import net.pterodactylus.util.swing.SwingUtils;
/**
* Defines the main window of the application.
- *
+ *
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
public class MainWindow extends JFrame implements WindowListener, I18nable, PropertyChangeListener {
@@ -125,7 +125,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Creates a new main window that redirects all actions to the given swing
* interface.
- *
+ *
* @param swingInterface
* The swing interface to receive all actions
*/
@@ -147,7 +147,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets the text of the status bar.
- *
+ *
* @param text
* The text of the status bar
*/
@@ -172,7 +172,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Returns the status bar clear delay (in milliseconds).
- *
+ *
* @return The status bar clear delay
*/
public int getStatusBarClearDelay() {
@@ -181,7 +181,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets the status bar clear delay (in milliseconds).
- *
+ *
* @param statusBarClearDelay
* The status bar clear delay
*/
@@ -191,7 +191,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets whether the advanced mode is activated.
- *
+ *
* @param advancedMode
* true
if the advanced mode is activated,
* false
if the simple mode is activated
@@ -210,7 +210,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Returns the currently selected project.
- *
+ *
* @return The currently selected project
*/
public Project getSelectedProject() {
@@ -219,7 +219,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets the given node to the âonlineâ state.
- *
+ *
* @param node
* The node to set online
*/
@@ -229,7 +229,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets the given node to the âofflineâ state in the status bar.
- *
+ *
* @param node
* The node to set offline
*/
@@ -239,7 +239,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Sets the given node to the âerrorâ state in the status bar.
- *
+ *
* @param node
* The node to set the error state for
*/
@@ -253,7 +253,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Adds a node to the menu.
- *
+ *
* @param node
* The node to add
*/
@@ -274,7 +274,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Removes a node from the menu.
- *
+ *
* @param node
* The node to remove
*/
@@ -286,7 +286,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Adds a project to the project pane.
- *
+ *
* @param project
* The project to add
* @param switchToProject
@@ -310,7 +310,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Removes the pane containing the given project.
- *
+ *
* @param project
* The project whose pane to remove
*/
@@ -372,7 +372,7 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
/**
* Returns the index of the project panel that contains the given project.
- *
+ *
* @param project
* The wanted project
* @return The index of {@link #projectPane}âs tab that contains the given
@@ -433,9 +433,10 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
setJMenuBar(menuBar);
JToolBar toolBar = new JToolBar(I18n.get("mainWindow.toolbar.name"));
- toolBar.add(swingInterface.getAddNodeAction());
- toolBar.addSeparator();
+ toolBar.add(swingInterface.getConfigureAction());
toolBar.add(swingInterface.getQuitAction());
+ toolBar.addSeparator();
+ toolBar.add(swingInterface.getAddNodeAction());
super.getContentPane().add(toolBar, BorderLayout.PAGE_START);
super.getContentPane().add(contentPane, BorderLayout.CENTER);