summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/Login_GUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'Dozentenmodul/src/GUI/Login_GUI.java')
-rw-r--r--Dozentenmodul/src/GUI/Login_GUI.java36
1 files changed, 22 insertions, 14 deletions
diff --git a/Dozentenmodul/src/GUI/Login_GUI.java b/Dozentenmodul/src/GUI/Login_GUI.java
index 990500db..cc558261 100644
--- a/Dozentenmodul/src/GUI/Login_GUI.java
+++ b/Dozentenmodul/src/GUI/Login_GUI.java
@@ -4,32 +4,33 @@ package gui;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Image;
+import java.awt.SystemColor;
import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.io.File;
+import java.io.IOException;
+
import javax.swing.ImageIcon;
+import javax.swing.JButton;
import javax.swing.JFrame;
+import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
+import javax.swing.JPasswordField;
+import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
-import javax.swing.JLabel;
-import javax.swing.JTextField;
-import javax.swing.JButton;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JPasswordField;
-import org.ini4j.InvalidFileFormatException;
+import models.person;
+
import org.ini4j.Wini;
import config.config_file;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.awt.SystemColor;
-import java.io.File;
-import java.io.IOException;
-
@SuppressWarnings("serial")
public class Login_GUI extends JFrame {
@@ -45,7 +46,7 @@ public class Login_GUI extends JFrame {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
-
+ //Prüfe und Erzeuge gegebenfalls Config
config_file cf=new config_file();
boolean conf=cf.createConfig();
if(conf==true)
@@ -149,6 +150,7 @@ public class Login_GUI extends JFrame {
try {
Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini"));
+ //Prüfe ob Bills Of Rights schon akzeptiert wurden, wenn nicht zeige diese an
if(ini.get("main", "BillOfRights",boolean.class)==false){
//Erstellen einer Instanz der Aktionsauswahl
BillOfRights_GUI re=new BillOfRights_GUI();
@@ -158,6 +160,7 @@ public class Login_GUI extends JFrame {
}
else
{
+ //Prüfe ob die Links zu vmware angezeigt werden sollen
if(ini.get("main", "vmware",boolean.class)==false){
VmWareLink_GUI vm=new VmWareLink_GUI();
vm.setVisible(true);
@@ -165,6 +168,11 @@ public class Login_GUI extends JFrame {
}
else
{
+ person.verantowrtlicher.setName("Spitzer");
+ person.verantowrtlicher.setVorname("Tobias");
+ person.verantowrtlicher.setEMail("tspitzer@hs-offenburg.de");
+ person.verantowrtlicher.setHochschule("HS Offenburg");
+ //Öffne das Hauprmenü
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
setVisible(false);