summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/lecture/CreateLectureLink_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/lecture/CreateLectureLink_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/lecture/CreateLectureLink_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java25
1 files changed, 18 insertions, 7 deletions
diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
index 148e42fc..54c467c5 100644
--- a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
@@ -1,12 +1,12 @@
package gui.lecture;
+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.KeyAdapter;
@@ -15,12 +15,12 @@ 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 java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
@@ -42,12 +42,16 @@ import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
+
import models.Lecture;
import models.Links;
import models.person;
+
import org.apache.thrift.TException;
+
import server.Server.Client;
import thrift.ThriftConnection;
+import util.GuiOrganizer;
@SuppressWarnings("serial")
public class CreateLectureLink_GUI extends JFrame {
@@ -95,10 +99,8 @@ public class CreateLectureLink_GUI extends JFrame {
e.printStackTrace();
}
setTitle("bwLehrpool Suite *Prototyp* - Veranstaltung erzeugen");
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top = (screenSize.height - 603) / 2;
- int left = (screenSize.width - 722) / 2;
- setBounds(left, top, 603, 722);
+ setBounds(0, 0, 603, 722);
+ GuiOrganizer.centerGUI(this);
final DefaultTableModel modelAll = new DefaultTableModel(titles, 0);
final DefaultTableModel model = new DefaultTableModel(titles, 0);
@@ -468,6 +470,15 @@ public class CreateLectureLink_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);
}