summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/searchRohling.java
diff options
context:
space:
mode:
authortspitzer2013-10-17 14:41:12 +0200
committertspitzer2013-10-17 14:41:12 +0200
commit9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6 (patch)
treecc675d389f18ffea779dbd29530da99468927995 /Dozentenmodul/src/GUI/searchRohling.java
parentMethode hinzugefügt um das Satelliten Script auszuführen (diff)
downloadtutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.tar.gz
tutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.tar.xz
tutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.zip
Version vom 17.10
-Hinweise eingefügt -Freigabe GUI ohne funktionalität eingefügt -Fenster zentriert -Download und Upload um Informationen erweitert
Diffstat (limited to 'Dozentenmodul/src/GUI/searchRohling.java')
-rw-r--r--Dozentenmodul/src/GUI/searchRohling.java37
1 files changed, 31 insertions, 6 deletions
diff --git a/Dozentenmodul/src/GUI/searchRohling.java b/Dozentenmodul/src/GUI/searchRohling.java
index cafe50ef..a234f26c 100644
--- a/Dozentenmodul/src/GUI/searchRohling.java
+++ b/Dozentenmodul/src/GUI/searchRohling.java
@@ -1,6 +1,9 @@
package GUI;
+import java.awt.Dimension;
import java.awt.FlowLayout;
+import java.awt.Toolkit;
+import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
@@ -28,9 +31,11 @@ import downloader.FTPException;
import downloader.FTPUtility;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+import javax.swing.JComboBox;
+import javax.swing.DefaultComboBoxModel;
@SuppressWarnings("serial")
-public class searchRohling extends JDialog {
+public class searchRohling extends JFrame {
private final JPanel contentPanel = new JPanel();
private JTextField textFieldsearch;
@@ -57,7 +62,9 @@ public class searchRohling extends JDialog {
/**
* Create the dialog.
*/
+ @SuppressWarnings({ "unchecked", "rawtypes" })
public searchRohling() {
+ getContentPane().setEnabled(false);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
@@ -72,7 +79,11 @@ public class searchRohling 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();
@@ -80,7 +91,7 @@ public class searchRohling extends JDialog {
getContentPane().add(panel);
panel.setLayout(null);
{
- JLabel lblNewLabel = new JLabel("Rohling ausw\u00E4hlen (Schritt 1 von 6)");
+ JLabel lblNewLabel = new JLabel("Rohling ausw\u00E4hlen (Schritt 1 von 7)");
lblNewLabel.setBounds(10, 11, 509, 22);
panel.add(lblNewLabel);
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18));
@@ -93,14 +104,14 @@ public class searchRohling extends JDialog {
txtpnBitteWhlenSie.setBounds(10, 36, 509, 42);
panel.add(txtpnBitteWhlenSie);
}
- contentPanel.setBounds(10, 123, 567, 449);
+ contentPanel.setBounds(10, 152, 567, 420);
contentPanel.setBackground(Color.WHITE);
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel);
contentPanel.setLayout(null);
list = new List();
- list.setBounds(0, 0, 567, 449);
+ list.setBounds(0, 10, 567, 400);
contentPanel.add(list);
{
JPanel buttonPane = new JPanel();
@@ -167,7 +178,7 @@ public class searchRohling extends JDialog {
}
}
});
- textFieldsearch.setBounds(10, 92, 166, 20);
+ textFieldsearch.setBounds(91, 95, 166, 20);
getContentPane().add(textFieldsearch);
textFieldsearch.setColumns(10);
@@ -179,6 +190,20 @@ public class searchRohling extends JDialog {
separator_1.setBounds(0, 82, 587, 2);
getContentPane().add(separator_1);
+ JLabel lblName = new JLabel("Name:");
+ lblName.setBounds(10, 98, 71, 14);
+ getContentPane().add(lblName);
+
+ JComboBox comboBox = new JComboBox();
+ comboBox.setEnabled(false);
+ comboBox.setModel(new DefaultComboBoxModel(new String[] {"Windows 7", "Windows 8", "Ubuntu"}));
+ comboBox.setBounds(91, 121, 166, 20);
+ getContentPane().add(comboBox);
+
+ JLabel lblOs = new JLabel("OS:");
+ lblOs.setBounds(10, 123, 71, 14);
+ getContentPane().add(lblOs);
+
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);