From 3389c358d12987b9e4721f1e84187ea332844aec Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 22 Aug 2014 12:02:11 +0200 Subject: Veranstlaungen lassen sich inactive schalten --- .../src/gui/lecture/EditLectureAllgemein_GUI.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java') diff --git a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java index d3c3d538..48cbedc9 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java @@ -287,6 +287,13 @@ public class EditLectureAllgemein_GUI extends JFrame { radioButtonyes = new JRadioButton("Ja"); buttonGroup.add(radioButtonyes); + radioButtonyes.setBounds(240, 225, 109, 23); + panel_2.add(radioButtonyes); + radioButtonno = new JRadioButton("Nein"); + buttonGroup.add(radioButtonno); + radioButtonno.setBounds(385, 225, 109, 23); + panel_2.add(radioButtonno); + if(Lecture.lecture.isActive()==true) { radioButtonyes.setSelected(true); @@ -295,13 +302,9 @@ public class EditLectureAllgemein_GUI extends JFrame { radioButtonno.setSelected(true); } - radioButtonyes.setBounds(240, 225, 109, 23); - panel_2.add(radioButtonyes); - radioButtonno = new JRadioButton("Nein"); - buttonGroup.add(radioButtonno); - radioButtonno.setBounds(385, 225, 109, 23); - panel_2.add(radioButtonno); + + JLabel label_12 = new JLabel("(Im VMChooser sichtbar)"); label_12.setBounds(10, 254, 250, 14); @@ -316,6 +319,7 @@ public class EditLectureAllgemein_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + if(radioButtonyes.isSelected()==true) { Lecture.lecture.setActive(true); -- cgit v1.2.3-55-g7522