From 0bac8e4d728c0ca01c1b2ac7ed5e23c888ad8fa6 Mon Sep 17 00:00:00 2001 From: MSeibert97 Date: Tue, 16 Jul 2019 14:03:17 +0200 Subject: [PATCH] =?UTF-8?q?Der=20neunte=20Commit.=20Textfelder=20zu=20den?= =?UTF-8?q?=20Fragen=20wurden=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 24 ++++++++++++++++-------- src/FitnessTest_M.java | 21 +++++++++++++++++++-- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index edb36d0..985eb0d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -32,8 +32,8 @@ - - + + @@ -477,7 +477,14 @@ - - + + diff --git a/src/FitnessTest_M.java b/src/FitnessTest_M.java index 97dda28..7a14a36 100644 --- a/src/FitnessTest_M.java +++ b/src/FitnessTest_M.java @@ -26,6 +26,10 @@ public class FitnessTest_M extends JFrame { JLabel question_label2 = null; JLabel question_label3 = null; JLabel question_label4 = null; + JTextField question_tf1 = null; + JTextField question_tf2 = null; + JTextField question_tf3 = null; + JTextField question_tf4 = null; public FitnessTest_M() { frame = new JFrame("Fitness Test"); @@ -103,9 +107,18 @@ public class FitnessTest_M extends JFrame { question_label2 = new JLabel("Essen sie: \n A: 1-2 mal am Tag B: 3-4 mal am Tag C: 5+ mal am Tag"); question_label2.setBounds(1170, 10, 500, 60); question_label3 = new JLabel("Rauchen sie?: \n A: Sehr oft B: Ab und zu C: Nie"); - question_label3.setBounds(510, 120, 500, 60); + question_label3.setBounds(510, 150, 500, 60); question_label4 = new JLabel("Trinken sie regelmässig Alkohol?: \n A: Sehr oft B: Ab und zu C: Nie"); - question_label4.setBounds(10, 120, 500, 60); + question_label4.setBounds(10, 150, 500, 60); + + question_tf1 = new JTextField(10); + question_tf1.setBounds(660, 70, 500, 30); + question_tf2 = new JTextField(10); + question_tf2.setBounds(1170, 70, 500, 30); + question_tf3 = new JTextField(10); + question_tf3.setBounds(520, 210, 500, 30); + question_tf4 = new JTextField(10); + question_tf4.setBounds(10, 210, 500, 30); frame.add(height_label); @@ -118,6 +131,10 @@ public class FitnessTest_M extends JFrame { frame.add(question_label2); frame.add(question_label3); frame.add(question_label4); + frame.add(question_tf1); + frame.add(question_tf2); + frame.add(question_tf3); + frame.add(question_tf4); bmi_rechnen = new JButton("BMI berechnen"); bmi_rechnen.setBounds(200, 90, 200, 30);