diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f276c2f..2d581ad 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,11 @@ - + + + + + - + - + @@ -219,14 +238,22 @@ - + @@ -276,13 +303,6 @@ - - - - - - - @@ -293,6 +313,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/out/production/Alpha/Main$1.class b/out/production/Alpha/Main$1.class index 060183f..02f2d59 100644 Binary files a/out/production/Alpha/Main$1.class and b/out/production/Alpha/Main$1.class differ diff --git a/out/production/Alpha/Main$ActionListener1.class b/out/production/Alpha/Main$ActionListener1.class index eef8589..26cb4b9 100644 Binary files a/out/production/Alpha/Main$ActionListener1.class and b/out/production/Alpha/Main$ActionListener1.class differ diff --git a/out/production/Alpha/Main.class b/out/production/Alpha/Main.class index 390ffe9..e2ebe7a 100644 Binary files a/out/production/Alpha/Main.class and b/out/production/Alpha/Main.class differ diff --git a/src/Main.java b/src/Main.java index 4b45221..cf01735 100644 --- a/src/Main.java +++ b/src/Main.java @@ -26,7 +26,52 @@ public class Main { this.contantPane = new JPanel(); this.fr.setContentPane(contantPane); - this.contantPane.add(new JLabel("Beispiel JLabel")); + this.contantPane.add(new JLabel("Ein Tool der CI!")); + this.contantPane.add(new JLabel("1) Tools von Daniel")); + + ButtonGroup buttonGroup = new ButtonGroup(); + JRadioButton hzeit = new JRadioButton("Hochzeit"); + hzeit.setBounds(100, 170, 100, 20); + buttonGroup.add(hzeit); + this.contantPane.add(hzeit); + JRadioButton gtag = new JRadioButton("Geburtstag"); + gtag.setBounds(250, 170, 100, 20); + buttonGroup.add(gtag); + this.contantPane.add(gtag); + + JLabel auswahl = new JLabel("Ihre Auswahl:"); + auswahl.setBounds(10, 200, 100, 20); + this.contantPane.add(auswahl); + final JTextField text1 = new JTextField(); + text1.setBounds(100, 200, 300, 20); + this.contantPane.add(text1); + + hzeit.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent ie) { + text1.setText("MALE"); + } + }); + + gtag.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent ie) { + text1.setText("FEMALE"); + } + }); + + + + this.contantPane.add(new JLabel("2) Tools von Eugen")); + + + + + + + + + this.contantPane.add(new JLabel("3) Tools von Michael")); + + this.contantPane.setVisible(true); this.fr.setVisible(true); }