diff options
Diffstat (limited to 'Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java index 9db4be3b..439c5b41 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureLink_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 EditLectureLink_GUI extends JFrame { @@ -89,10 +93,9 @@ public class EditLectureLink_GUI extends JFrame { e.printStackTrace(); } setTitle("bwLehrpool Suite *Prototyp* - Veranstaltung bearbeiten"); - 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); @@ -460,6 +463,15 @@ public class EditLectureLink_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); } |
