Browse Source

JArea Funktion für Gesamtgewinn läuft

new_repo
Komlovski 5 years ago
parent
commit
6e263ab221
  1. 30
      .idea/libraries/Maven__Arquillian_TestNG_Release.xml
  2. 82
      .idea/workspace.xml
  3. 1
      Alpha.iml
  4. 18
      src/Quiz_Spiel.java

30
.idea/libraries/Maven__Arquillian_TestNG_Release.xml

@ -0,0 +1,30 @@
<component name="libraryTable">
<library name="Maven: Arquillian TestNG:Release" type="repository">
<properties maven-id="org.jboss.arquillian.testng:arquillian-testng-container:RELEASE" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/testng/arquillian-testng-container/1.4.1.Final/arquillian-testng-container-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/testng/arquillian-testng-core/1.4.1.Final/arquillian-testng-core-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/test/arquillian-test-api/1.4.1.Final/arquillian-test-api-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/core/arquillian-core-api/1.4.1.Final/arquillian-core-api-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/test/arquillian-test-spi/1.4.1.Final/arquillian-test-spi-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/core/arquillian-core-spi/1.4.1.Final/arquillian-core-spi-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/container/arquillian-container-test-api/1.4.1.Final/arquillian-container-test-api-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6/shrinkwrap-api-1.2.6.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0/shrinkwrap-descriptors-api-base-2.0.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/container/arquillian-container-test-spi/1.4.1.Final/arquillian-container-test-spi-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/container/arquillian-container-spi/1.4.1.Final/arquillian-container-spi-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/core/arquillian-core-impl-base/1.4.1.Final/arquillian-core-impl-base-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/test/arquillian-test-impl-base/1.4.1.Final/arquillian-test-impl-base-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/container/arquillian-container-impl-base/1.4.1.Final/arquillian-container-impl-base-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/config/arquillian-config-api/1.4.1.Final/arquillian-config-api-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/config/arquillian-config-impl-base/1.4.1.Final/arquillian-config-impl-base-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/config/arquillian-config-spi/1.4.1.Final/arquillian-config-spi-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0/shrinkwrap-descriptors-spi-2.0.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/arquillian/container/arquillian-container-test-impl-base/1.4.1.Final/arquillian-container-test-impl-base-1.4.1.Final.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6/shrinkwrap-impl-base-1.2.6.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6/shrinkwrap-spi-1.2.6.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

82
.idea/workspace.xml

@ -20,8 +20,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Quiz_Spiel.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1437">
<caret line="272" column="56" selection-start-line="272" selection-start-column="56" selection-end-line="272" selection-end-column="56" />
<state relative-caret-position="85">
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>
@ -29,10 +29,19 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/JunitTest/JunitTest.iml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" column="9" selection-start-line="11" selection-start-column="9" selection-end-line="11" selection-end-column="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<state relative-caret-position="2159">
<caret line="131" column="20" selection-start-line="131" selection-start-column="20" selection-end-line="131" selection-end-column="46" />
<folding>
<element signature="imports" expanded="true" />
@ -112,6 +121,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
@ -133,8 +144,6 @@
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
@ -149,7 +158,7 @@
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="restartRequiresConfirmation" value="false" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
<property name="settings.editor.selected.configurable" value="preferences.sourceCode.Java" />
</component>
<component name="RecentsManager">
<key name="CreateTestDialog.RecentsKey">
@ -241,7 +250,8 @@
<workItem from="1562856644601" duration="8772000" />
<workItem from="1562929796678" duration="3793000" />
<workItem from="1563047167511" duration="5798000" />
<workItem from="1563187286048" duration="518000" />
<workItem from="1563187286048" duration="707000" />
<workItem from="1563210526148" duration="1526000" />
</task>
<task id="LOCAL-00001" summary="neue master">
<created>1562341097724</created>
@ -397,17 +407,24 @@
<option name="project" value="LOCAL" />
<updated>1563187501151</updated>
</task>
<option name="localTasksCounter" value="23" />
<task id="LOCAL-00023" summary="Fehler behoben,,,,fehlt noch JArea Funktion für Gesamtgewinn">
<created>1563187869684</created>
<option name="number" value="00023" />
<option name="presentableId" value="LOCAL-00023" />
<option name="project" value="LOCAL" />
<updated>1563187869684</updated>
</task>
<option name="localTasksCounter" value="24" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="42721000" />
<option name="totallyTimeSpent" value="44436000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="784" extended-state="6" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.22314675" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22617246" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
@ -417,7 +434,7 @@
<window_info anchor="bottom" id="Messages" order="0" sideWeight="0.49848714" weight="0.32718894" />
<window_info anchor="bottom" id="Message" order="1" />
<window_info anchor="bottom" id="Find" order="2" />
<window_info active="true" anchor="bottom" id="Run" order="3" sideWeight="0.49924356" visible="true" weight="0.33333334" />
<window_info anchor="bottom" id="Run" order="3" sideWeight="0.49924356" visible="true" weight="0.33179724" />
<window_info anchor="bottom" id="Debug" order="4" sideWeight="0.49924356" weight="0.39938557" />
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
@ -456,7 +473,8 @@
<MESSAGE value="Tage_D Zufallsgenerator erstellt." />
<MESSAGE value="Tage_D Generator angepasst mit Zeitpunkt Änderung größer dieses Jahres" />
<MESSAGE value="jAVA Goooooggle Style importiert und angewendet" />
<option name="LAST_COMMIT_MESSAGE" value="jAVA Goooooggle Style importiert und angewendet" />
<MESSAGE value="Fehler behoben,,,,fehlt noch JArea Funktion für Gesamtgewinn" />
<option name="LAST_COMMIT_MESSAGE" value="Fehler behoben,,,,fehlt noch JArea Funktion für Gesamtgewinn" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/testJFrame.java" />
@ -486,9 +504,6 @@
<entry file="file://$PROJECT_DIR$/src/MainGUI.form" />
<entry file="file://$PROJECT_DIR$/src/D_Test2.java" />
<entry file="file://$PROJECT_DIR$/src/D_Test3.java" />
<entry file="file://$PROJECT_DIR$/JunitTest/JunitTest.iml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<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" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_111/src.zip!/javax/swing/JRootPane.java" />
@ -497,30 +512,51 @@
<entry file="file://$PROJECT_DIR$/src/bild1.jpg" />
<entry file="file://$PROJECT_DIR$/src/bild2.jpg" />
<entry file="file://$PROJECT_DIR$/src/Quiz.java" />
<entry file="file://$PROJECT_DIR$/src/Tage_D.java">
<entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="459">
<caret line="35" column="8" selection-start-line="35" selection-start-column="8" selection-end-line="35" selection-end-column="30" />
<state relative-caret-position="2159">
<caret line="131" column="20" selection-start-line="131" selection-start-column="20" selection-end-line="131" selection-end-column="46" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Main.java">
<entry file="file://$PROJECT_DIR$/src/Tage_D.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="131" column="20" selection-start-line="131" selection-start-column="20" selection-end-line="131" selection-end-column="46" />
<state relative-caret-position="459">
<caret line="35" column="8" selection-start-line="35" selection-start-column="8" selection-end-line="35" selection-end-column="30" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk-11.0.2/lib/src.zip!/java.desktop/java/awt/LayoutManager.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="768">
<caret line="69" column="14" selection-start-line="69" selection-start-column="14" selection-end-line="69" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk-11.0.2/lib/src.zip!/java.desktop/java/awt/event/ActionListener.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="459">
<caret line="50" column="16" selection-start-line="50" selection-start-column="16" selection-end-line="50" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/JunitTest/JunitTest.iml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" column="9" selection-start-line="11" selection-start-column="9" selection-end-line="11" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Quiz_Spiel.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1437">
<caret line="272" column="56" selection-start-line="272" selection-start-column="56" selection-end-line="272" selection-end-column="56" />
<state relative-caret-position="85">
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
<folding>
<element signature="imports" expanded="true" />
</folding>

1
Alpha.iml

@ -29,5 +29,6 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="Maven: Arquillian TestNG:Release" level="project" />
</component>
</module>

18
src/Quiz_Spiel.java

@ -143,7 +143,7 @@ public class Quiz_Spiel extends JFrame {
getContentPane().add(button_5);
button_5.addActionListener(new CloseListener4());
textfield_10 = new JTextField("textfield_10");
textfield_10 = new JTextField("0 Euro");
getContentPane().add(textfield_10);
label_13 = new JLabel("Gewinn:");
@ -168,12 +168,20 @@ public class Quiz_Spiel extends JFrame {
}
class CloseListener2 implements ActionListener{
@Override
public void actionPerformed(ActionEvent a) {
/** Methode prüft Eingabe und führt Info raus.
*
*
* @param a Objekt von ActionEvent
*
*
*/
@Override
public void actionPerformed(ActionEvent a) {
if(textfield_4.getText().startsWith("C") || textfield_4.getText().startsWith("c") ) {
System.out.println("ja");
textfield_4.setText("Richtig ! Gewinn 2000 Euro");
textfield_10.setText("2000 Euro");
JOptionPane.showMessageDialog(null,
"Herzlichen Glückwunsch , Sie sind nicht so dumm, wie ich dachte !",
"Eine Nachricht",
@ -198,6 +206,7 @@ public class Quiz_Spiel extends JFrame {
if(textfield_9.getText().startsWith("C") || textfield_9.getText().startsWith("c") ) {
System.out.println("ja");
textfield_9.setText("Richtig ! Gewinn 2000 Euro");
textfield_10.setText("10000 Euro");
JOptionPane.showMessageDialog(null,
"Herzlichen Glückwunsch, Sie haben 10000 Euro gewonnen!",
"Eine Nachricht",
@ -222,6 +231,7 @@ public class Quiz_Spiel extends JFrame {
if(textfield_8.getText().startsWith("A") || textfield_8.getText().startsWith("a") ) {
System.out.println("ja");
textfield_8.setText("Richtig ! Gewinn 2000 Euro");
textfield_10.setText("8000 Euro");
JOptionPane.showMessageDialog(null,
"Gut gemacht, Egal wie leer du bist - es gibt Menschen die sind Lehrer!",
"Eine Nachricht",
@ -246,6 +256,7 @@ public class Quiz_Spiel extends JFrame {
if(textfield_7.getText().startsWith("C") || textfield_7.getText().startsWith("c") ) {
System.out.println("ja");
textfield_7.setText("Richtig ! Gewinn 2000 Euro");
textfield_10.setText("6000 Euro");
JOptionPane.showMessageDialog(null,
"HA, gut geraten! Wo ist der beste Ort um eine Leiche zu verstecken? Seite 2 auf Google ",
"Eine Nachricht",
@ -271,6 +282,7 @@ public class Quiz_Spiel extends JFrame {
if(textfield_5.getText().startsWith("B") || textfield_5.getText().startsWith("b") ) {
System.out.println("ja");
textfield_5.setText("Richtig ! Gewinn 2000 Euro");
textfield_10.setText("4000 Euro");
JOptionPane.showMessageDialog(null,
"Wie viele Windows-Anwender braucht man, um eine Glühbirne zu wechseln? – 100. Einer schraubt und 99 klicken die Fehlermeldungen weg.",
"Eine Nachricht",

Loading…
Cancel
Save