From 9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6 Mon Sep 17 00:00:00 2001 From: tspitzer Date: Thu, 17 Oct 2013 14:41:12 +0200 Subject: Version vom 17.10 -Hinweise eingefügt -Freigabe GUI ohne funktionalität eingefügt -Fenster zentriert -Download und Upload um Informationen erweitert --- Dozentenmodul/src/GUI/Summary.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Dozentenmodul/src/GUI/Summary.java') diff --git a/Dozentenmodul/src/GUI/Summary.java b/Dozentenmodul/src/GUI/Summary.java index 4c24a5c9..f0955510 100644 --- a/Dozentenmodul/src/GUI/Summary.java +++ b/Dozentenmodul/src/GUI/Summary.java @@ -1,7 +1,9 @@ package GUI; +import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.List; - +import java.awt.Toolkit; +import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JPanel; @@ -30,7 +32,7 @@ import java.awt.event.WindowEvent; @SuppressWarnings("serial") -public class Summary extends JDialog { +public class Summary extends JFrame { String[] result; /** @@ -64,7 +66,11 @@ public class Summary extends JDialog { e.printStackTrace(); } setTitle("Dozentenmodul"); - setBounds(100, 100, 603, 722); + 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); getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -72,7 +78,7 @@ public class Summary extends JDialog { getContentPane().add(panel); panel.setLayout(null); { - JLabel lblNewLabel = new JLabel("Fertig stellen (Schritt 6 von 6)"); + JLabel lblNewLabel = new JLabel("Fertig stellen (Schritt 7 von 7)"); lblNewLabel.setBounds(10, 11, 391, 22); panel.add(lblNewLabel); lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18)); @@ -96,7 +102,7 @@ public class Summary extends JDialog { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - EingabeSoftwareDaten ea=new EingabeSoftwareDaten(); + Freigabe ea=new Freigabe(); ea.setVisible(true); dispose(); } @@ -260,6 +266,7 @@ public class Summary extends JDialog { public void actionPerformed(ActionEvent arg0) { EingabeAllgemein ea=new EingabeAllgemein(); ea.setVisible(true); + setVisible(false); } }); btnZurDateneingabe.setBounds(10, 186, 132, 23); @@ -353,6 +360,7 @@ public class Summary extends JDialog { public void actionPerformed(ActionEvent e) { EingabeSystemDaten es=new EingabeSystemDaten(); es.setVisible(true); + setVisible(false); } }); btnDatenndern.setBounds(10, 335, 132, 23); @@ -386,6 +394,7 @@ public class Summary extends JDialog { public void actionPerformed(ActionEvent e) { EingabeSoftwareDaten es=new EingabeSoftwareDaten(); es.setVisible(true); + setVisible(false); } }); btnDatenndern_1.setBounds(11, 382, 132, 23); -- cgit v1.2.3-55-g7522