summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
diff options
context:
space:
mode:
authorMurilo Araujo2014-06-06 11:24:39 +0200
committerMurilo Araujo2014-06-06 11:24:39 +0200
commitadffefa54b9aaf13afd31157c77b59e8349f7aca (patch)
tree30bc80171db43c075a1afd24aa7119b8c290784c /Dozentenmodul/src/gui/intro/MainMenue_GUI.java
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
parentInitial Commit (diff)
downloadtutor-module-adffefa54b9aaf13afd31157c77b59e8349f7aca.tar.gz
tutor-module-adffefa54b9aaf13afd31157c77b59e8349f7aca.tar.xz
tutor-module-adffefa54b9aaf13afd31157c77b59e8349f7aca.zip
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Diffstat (limited to 'Dozentenmodul/src/gui/intro/MainMenue_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/intro/MainMenue_GUI.java76
1 files changed, 45 insertions, 31 deletions
diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
index 59a35df3..abce5001 100644
--- a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
+++ b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
@@ -1,41 +1,48 @@
package gui.intro;
-import gui.image.*;
-import gui.lecture.*;
-import java.awt.Dimension;
+import gui.image.CreateImageAllgemein_GUI;
+import gui.image.DeleteImage_GUI;
+import gui.image.SearchEditImage_GUI;
+import gui.image.SearchImage_GUI;
+import gui.lecture.CreateLectureAllgemein_GUI;
+import gui.lecture.DeleteLecture_GUI;
+import gui.lecture.EditLectureSearch_GUI;
+import gui.lecture.SearchLecture_GUI;
+
import java.awt.FlowLayout;
-import java.awt.Toolkit;
-import javax.swing.JFrame;
-import javax.swing.JButton;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.JLabel;
import java.awt.Font;
-import javax.swing.JTextPane;
+import java.awt.ScrollPane;
import java.awt.SystemColor;
-import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JRadioButton;
-import javax.swing.SwingConstants;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+
import javax.swing.ButtonGroup;
-import javax.swing.JMenuBar;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
import javax.swing.JMenu;
+import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JSeparator;
+import javax.swing.JTextArea;
+import javax.swing.JTextPane;
+import javax.swing.SwingConstants;
import javax.swing.ToolTipManager;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
-import java.awt.ScrollPane;
-import javax.swing.JTextArea;
-import javax.swing.ImageIcon;
+
import models.Links;
import models.SessionData;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.io.IOException;
+import util.GuiOrganizer;
@SuppressWarnings("serial")
public class MainMenue_GUI extends JFrame {
@@ -54,6 +61,7 @@ public class MainMenue_GUI extends JFrame {
JRadioButton rdbtnLectureDelete;
JRadioButton rdbtnLectureSearch;
private final ButtonGroup buttonGroup = new ButtonGroup();
+ private JMenuItem mntmAbout;
/**
@@ -74,11 +82,9 @@ public class MainMenue_GUI extends JFrame {
e.printStackTrace();
}
setTitle("bwLehrpool Suite *Prototyp* - Connected Server: "+SessionData.session.getServerAdress());
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top = (screenSize.height - 722) / 2;
- int left = (screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
- // setBounds(100, 100, 545, 366);
+ setBounds(0, 0, 603, 722);
+ GuiOrganizer.centerGUI(this);
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -419,7 +425,15 @@ public class MainMenue_GUI extends JFrame {
});
mnNewMenu_1.add(mntmOtrs);
+
+ mntmAbout = new JMenuItem("About");
+ mntmAbout.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ About_GUI ab = new About_GUI();
+ ab.setVisible(true);
+ }
+ });
+ mnNewMenu_1.add(mntmAbout);
}// end main
-
}// end class