Browse Source

Der erste commit für meine FitnessTest Klasse. Hier wurde nur ein Grundgerüst für dessen GUI erstellt. Noch sind keine

richtige Funktionen enthalten.
master
MSeibert97 5 years ago
parent
commit
b5ea98caa3
  1. 3
      .idea/libraries/Drools_6_2_0.xml
  2. 2
      .idea/misc.xml
  3. 116
      .idea/workspace.xml
  4. 60
      src/FitnessTest_M.java
  5. 2
      src/Main.java

3
.idea/libraries/Drools_6_2_0.xml

@ -1,6 +1,5 @@
<component name="libraryTable"> <component name="libraryTable">
<library name="Drools-6.2.0" type="Drools">
<properties version="6.2.0" />
<library name="Drools-6.2.0">
<CLASSES> <CLASSES>
<root url="jar://$PROJECT_DIR$/lib/drools-decisiontables-6.2.0.Final.jar!/" /> <root url="jar://$PROJECT_DIR$/lib/drools-decisiontables-6.2.0.Final.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/drools-jsr94-6.2.0.Final.jar!/" /> <root url="jar://$PROJECT_DIR$/lib/drools-jsr94-6.2.0.Final.jar!/" />

2
.idea/misc.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="true" project-jdk-name="9" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

116
.idea/workspace.xml

@ -2,12 +2,8 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="db773f9a-00fd-4a2d-a6a9-bbfafdd60b01" name="Default Changelist" comment=""> <list default="true" id="db773f9a-00fd-4a2d-a6a9-bbfafdd60b01" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/Alpha-GOGS.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Bmi.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/META-INF/Alpha.kotlin_module" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/TestBmi.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/Tage_D.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Tage_D.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/FitnessTest_M.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/out/" /> <ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@ -20,14 +16,30 @@
<option name="isMigrated" value="true" /> <option name="isMigrated" value="true" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Main.java"> <entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="434">
<caret line="62" column="11" lean-forward="true" selection-start-line="62" selection-start-column="11" selection-end-line="62" selection-end-column="11" />
<state relative-caret-position="342">
<caret line="149" lean-forward="true" selection-start-line="149" selection-end-line="149" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#2492#2625#0" expanded="true" />
<element signature="e#2624#2625#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/FitnessTest_M.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="464">
<caret line="59" column="1" lean-forward="true" selection-start-line="59" selection-start-column="1" selection-end-line="59" selection-end-column="1" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#1680#1681#0" expanded="true" />
<element signature="e#1732#1733#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
@ -38,9 +50,9 @@
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES"> <option name="RECENT_TEMPLATES">
<list> <list>
<option value="Class" />
<option value="Arquillian JUnit Test Class" /> <option value="Arquillian JUnit Test Class" />
<option value="JUnit5 Test Class" /> <option value="JUnit5 Test Class" />
<option value="Class" />
</list> </list>
</option> </option>
</component> </component>
@ -75,15 +87,16 @@
<option value="$PROJECT_DIR$/src/MainGUI.form" /> <option value="$PROJECT_DIR$/src/MainGUI.form" />
<option value="$PROJECT_DIR$/src/Quiz_Spiel.java" /> <option value="$PROJECT_DIR$/src/Quiz_Spiel.java" />
<option value="$PROJECT_DIR$/src/Tage_DTest.java" /> <option value="$PROJECT_DIR$/src/Tage_DTest.java" />
<option value="$PROJECT_DIR$/src/Main.java" />
<option value="$PROJECT_DIR$/src/Tage_D.java" /> <option value="$PROJECT_DIR$/src/Tage_D.java" />
<option value="$PROJECT_DIR$/src/FitnessTest_M.java" />
<option value="$PROJECT_DIR$/src/Main.java" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="6"> <component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="793" />
<option name="width" value="814" />
<option name="height" value="877" />
<option name="x" value="792" />
<option name="width" value="815" />
<option name="height" value="878" />
</component> </component>
<component name="ProjectLevelVcsManager"> <component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" /> <ConfirmationsSetting value="2" id="Add" />
@ -93,22 +106,16 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<expand> <expand>
<path> <path>
<item name="Alpha-GOGS" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha-GOGS" type="462c0819:PsiDirectoryNode" />
<item name="Alpha" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="Alpha-GOGS" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha-GOGS" type="462c0819:PsiDirectoryNode" />
<item name=".idea" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Alpha-GOGS" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha-GOGS" type="462c0819:PsiDirectoryNode" />
<item name="Alpha" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
</path> </path>
</expand> </expand>
@ -116,6 +123,7 @@
</subPane> </subPane>
</pane> </pane>
<pane id="PackagesPane" /> <pane id="PackagesPane" />
<pane id="Scope" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
@ -174,7 +182,10 @@
</method> </method>
</configuration> </configuration>
<configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="ALTERNATIVE_JRE_PATH" value="9" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" />
<option name="MAIN_CLASS_NAME" value="Main" /> <option name="MAIN_CLASS_NAME" value="Main" />
<module name="Alpha" />
<method v="2"> <method v="2">
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
@ -208,7 +219,7 @@
</component> </component>
<component name="TaskManager"> <component name="TaskManager">
<task active="true" id="Default" summary="Default task"> <task active="true" id="Default" summary="Default task">
<changelist id="41dc023d-0769-466f-850a-8e3eed9fe5fa" name="Default Changelist" comment="" />
<changelist id="db773f9a-00fd-4a2d-a6a9-bbfafdd60b01" name="Default Changelist" comment="" />
<created>1562340910388</created> <created>1562340910388</created>
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
@ -389,10 +400,9 @@
<option name="totallyTimeSpent" value="46018000" /> <option name="totallyTimeSpent" value="46018000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
<editor active="true" />
<frame x="-7" y="-7" width="1295" height="695" extended-state="6" />
<layout> <layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.254251" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" /> <window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" /> <window_info id="Designer" order="3" />
@ -402,7 +412,7 @@
<window_info anchor="bottom" id="Messages" order="0" weight="0.3279743" /> <window_info anchor="bottom" id="Messages" order="0" weight="0.3279743" />
<window_info anchor="bottom" id="Message" order="1" /> <window_info anchor="bottom" id="Message" order="1" />
<window_info anchor="bottom" id="Find" order="2" weight="0.3290461" /> <window_info anchor="bottom" id="Find" order="2" weight="0.3290461" />
<window_info anchor="bottom" id="Run" order="3" visible="true" weight="0.33440515" />
<window_info anchor="bottom" id="Run" order="3" weight="0.33440515" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.3997344" /> <window_info anchor="bottom" id="Debug" order="4" weight="0.3997344" />
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
@ -413,7 +423,6 @@
<window_info anchor="bottom" id="Terminal" order="11" weight="0.3290461" /> <window_info anchor="bottom" id="Terminal" order="11" weight="0.3290461" />
<window_info anchor="bottom" id="Event Log" order="12" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="12" side_tool="true" />
<window_info anchor="bottom" id="Java Enterprise" order="13" /> <window_info anchor="bottom" id="Java Enterprise" order="13" />
<window_info active="true" anchor="right" id="Coverage" side_tool="true" visible="true" weight="0.32995737" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@ -424,6 +433,7 @@
<window_info anchor="right" id="Palette&#9;" order="7" /> <window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Database" order="8" /> <window_info anchor="right" id="Database" order="8" />
<window_info anchor="right" id="CDI" order="9" /> <window_info anchor="right" id="CDI" order="9" />
<window_info active="true" anchor="right" id="Coverage" order="10" side_tool="true" visible="true" weight="0.32995737" />
</layout> </layout>
<layout-to-restore> <layout-to-restore>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.14712153" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.14712153" />
@ -514,32 +524,12 @@
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor" />
</entry> </entry>
<entry file="file://$PROJECT_DIR$/JunitTest/src/Tage_DTest.java" /> <entry file="file://$PROJECT_DIR$/JunitTest/src/Tage_DTest.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_111/src.zip!/javax/swing/JFrame.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="151">
<caret line="697" column="22" selection-start-line="697" selection-start-column="22" selection-end-line="697" selection-end-column="22" />
<folding>
<element signature="e#24496#24497#0" expanded="true" />
<element signature="e#24553#24554#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk1.8.0_111/src.zip!/javax/swing/JRootPane.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="814">
<caret line="620" column="18" selection-start-line="620" selection-start-column="18" selection-end-line="620" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk1.8.0_111/src.zip!/javax/swing/JFrame.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_111/src.zip!/javax/swing/JRootPane.java" />
<entry file="file://$PROJECT_DIR$/src/bild.jpg" /> <entry file="file://$PROJECT_DIR$/src/bild.jpg" />
<entry file="file://$PROJECT_DIR$/src/bild.gif" /> <entry file="file://$PROJECT_DIR$/src/bild.gif" />
<entry file="file://$PROJECT_DIR$/src/bild1.jpg">
<provider selected="true" editor-type-id="images" />
</entry>
<entry file="file://$PROJECT_DIR$/src/bild2.jpg">
<provider selected="true" editor-type-id="images" />
</entry>
<entry file="file://$PROJECT_DIR$/src/bild1.jpg" />
<entry file="file://$PROJECT_DIR$/src/bild2.jpg" />
<entry file="file://$PROJECT_DIR$/src/Quiz_Spiel.java"> <entry file="file://$PROJECT_DIR$/src/Quiz_Spiel.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="93"> <state relative-caret-position="93">
@ -571,12 +561,26 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/FitnessTest_M.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="464">
<caret line="59" column="1" lean-forward="true" selection-start-line="59" selection-start-column="1" selection-end-line="59" selection-end-column="1" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#1680#1681#0" expanded="true" />
<element signature="e#1732#1733#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Main.java"> <entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="434">
<caret line="62" column="11" lean-forward="true" selection-start-line="62" selection-start-column="11" selection-end-line="62" selection-end-column="11" />
<state relative-caret-position="342">
<caret line="149" lean-forward="true" selection-start-line="149" selection-end-line="149" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#2492#2625#0" expanded="true" />
<element signature="e#2624#2625#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>

60
src/FitnessTest_M.java

@ -0,0 +1,60 @@
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class FitnessTest_M extends JFrame {
JFrame frame = null;
JPanel panel_1 = null;
JButton button_1 = null;
JTextField field_1 = null;
JMenuItem menuItem_1 = null;
JMenuBar menuBar = null;
JMenu menu = null;
JLabel height_label = null;
JTextField height_tf = null;
JLabel weight_label = null;
JTextField weight_tf = null;
public FitnessTest_M() {
frame = new JFrame("Fitness Test");
frame.setSize(1920, 1080);
panel_1 = new JPanel();
frame.setContentPane(panel_1);
menu = new JMenu("Option");
menuItem_1 = new JMenuItem("Exit");
panel_1.add(menuItem_1);
menuItem_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent a) {
if(a.getSource() == menuItem_1) {
System.exit(0);
}
}
});
menu.add(menuItem_1);
menuBar = new JMenuBar();
menuBar.add(menu);
frame.setJMenuBar(menuBar);
height_label = new JLabel("Geben sie hier ihre Körpergröße ein (in Meter)");
panel_1.add(height_label);
height_tf = new JTextField(40);
panel_1.add(height_tf);
weight_label = new JLabel("Geben sie hier ihr Gewicht ein (in Kilogramm)");
panel_1.add(weight_label);
weight_tf = new JTextField(40);
panel_1.add(weight_tf);
frame.setVisible(true);
}
public static void main(String[] args) {
FitnessTest_M M = new FitnessTest_M();
}
}

2
src/Main.java

@ -139,7 +139,7 @@ public class Main {
JOptionPane.showMessageDialog(fr, "Aufruf von Michaels Tools"); JOptionPane.showMessageDialog(fr, "Aufruf von Michaels Tools");
fr.setVisible(false); fr.setVisible(false);
//Quiz qwqqq = new Quiz();
FitnessTest_M M = new FitnessTest_M();
}catch (Exception ex) { }catch (Exception ex) {

Loading…
Cancel
Save