summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/image/SearchMethodLecture_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/image/SearchMethodLecture_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/image/SearchMethodLecture_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java25
1 files changed, 17 insertions, 8 deletions
diff --git a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java b/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
index 3d312394..daef9bae 100644
--- a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
+++ b/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
@@ -1,20 +1,19 @@
package gui.image;
+import gui.intro.About_GUI;
import gui.intro.MainMenue_GUI;
import java.awt.Color;
-import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
-import java.awt.Toolkit;
import java.awt.event.ActionEvent;
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 java.io.IOException;
+
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
@@ -31,7 +30,9 @@ import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
+
import models.Links;
+import util.GuiOrganizer;
@SuppressWarnings("serial")
public class SearchMethodLecture_GUI extends JFrame {
@@ -64,11 +65,10 @@ public class SearchMethodLecture_GUI extends JFrame {
e.printStackTrace();
}
setTitle("bwLehrpool Suite *Prototyp* - Suchmethode w\u00E4hlen");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top = (screenSize.height - 603) / 2;
- int left = (screenSize.width - 722) / 2;
- setBounds(left, top, 603, 722);
- // setBounds(100, 100, 603, 722);
+
+ setBounds(0, 0, 603, 722);
+ GuiOrganizer.centerGUI(this);
+
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
@@ -253,6 +253,15 @@ public class SearchMethodLecture_GUI extends JFrame {
});
mnNewMenu_1.add(mntmOtrs);
+
+ JMenuItem mntmAbout = new JMenuItem("About");
+ mntmAbout.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ About_GUI ab = new About_GUI();
+ ab.setVisible(true);
+ }
+ });
+ mnNewMenu_1.add(mntmAbout);
}
}