Browse Source

Quiz Spiel. Obergläche grob fertig

new_repo
Komlovski 5 years ago
parent
commit
bad024afc5
  1. 2
      .idea/misc.xml
  2. 291
      .idea/workspace.xml
  3. 13
      src/Quiz.form
  4. 18
      src/Quiz.java
  5. 254
      src/Quiz_Spiel.java

2
.idea/misc.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

291
.idea/workspace.xml

@ -2,9 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="41dc023d-0769-466f-850a-8e3eed9fe5fa" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/Quiz.form" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Tage_DTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/JunitTest/src/Tage_DTest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Quiz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Quiz.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@ -16,16 +17,21 @@
<component name="DefaultGradleProjectSettings">
<option name="isMigrated" value="true" />
</component>
<component name="ExportToHTMLSettings">
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/../Alpha\exportToHTML" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/MainGUI.form">
<provider selected="true" editor-type-id="ui-designer" />
<entry file="file://$PROJECT_DIR$/src/Quiz.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="86" column="111" selection-start-line="86" selection-start-column="111" selection-end-line="86" selection-end-column="111" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
@ -34,22 +40,9 @@
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
<option value="Arquillian JUnit Test Class" />
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>pa.</find>
<find>contantPane</find>
<find>this.</find>
</findStrings>
<replaceStrings>
<replace>this.</replace>
<replace>this.panel</replace>
<replace>Panele</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
@ -61,16 +54,21 @@
<option value="$PROJECT_DIR$/src/geburtstag.java" />
<option value="$PROJECT_DIR$/src/Geburtstag.java" />
<option value="$PROJECT_DIR$/src/Main.java" />
<option value="$PROJECT_DIR$/src/MainGUI.form" />
<option value="$PROJECT_DIR$/src/Tage_D.java" />
<option value="$PROJECT_DIR$/src/Tage_DTest.java" />
<option value="$PROJECT_DIR$/src/TicTakToc_E_K.java" />
<option value="$PROJECT_DIR$/src/Quiz_E.java" />
<option value="$PROJECT_DIR$/src/RadioQuestion.java" />
<option value="$PROJECT_DIR$/src/QuizGame.form" />
<option value="$PROJECT_DIR$/src/Quizjjj.form" />
<option value="$PROJECT_DIR$/src/Quiz.java" />
<option value="$PROJECT_DIR$/src/Quiz_Spiel.java" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-7" />
<option name="width" value="974" />
<option name="height" value="1057" />
<option name="x" value="488" />
<option name="y" value="92" />
<option name="width" value="1346" />
<option name="height" value="728" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
@ -80,8 +78,6 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
@ -89,11 +85,6 @@
<item name="Alpha" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Alpha" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha" type="462c0819:PsiDirectoryNode" />
<item name="JunitTest" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Alpha" type="b2602c69:ProjectViewProjectNode" />
<item name="Alpha" type="462c0819:PsiDirectoryNode" />
@ -103,27 +94,19 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="Arquillian JUnit4" />
<property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.Arquillian JUnit4" value="" />
<property name="create.test.in.the.same.root" value="true" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.15" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="restartRequiresConfirmation" value="false" />
</component>
<component name="RecentsManager">
<key name="CreateTestDialog.RecentsKey">
<recent name="" />
</key>
<key name="CreateTestDialog.Recents.Supers">
<recent name="" />
</key>
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
@ -137,37 +120,37 @@
</list>
</option>
</component>
<component name="RunManager" selected="Application.Tage_D">
<configuration name="D_Geburtstag" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="D_Geburtstag" />
<component name="RunManager" selected="Application.Quiz_Spiel">
<configuration name="TicTakToc_E_K" type="Applet" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="TicTakToc_E_K" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="D_Test1" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="D_Test1" />
<configuration name="Quiz" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Quiz" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Main" />
<configuration name="Quiz_E" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Quiz_E" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Tage_D" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Tage_D" />
<configuration name="Quiz_Spiel" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Quiz_Spiel" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="main" />
<configuration name="TicTakToc_E_K" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="TicTakToc_E_K" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
@ -175,11 +158,11 @@
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.Tage_D" />
<item itemvalue="Application.Main" />
<item itemvalue="Application.D_Test1" />
<item itemvalue="Application.D_Geburtstag" />
<item itemvalue="Application.main" />
<item itemvalue="Application.Quiz_Spiel" />
<item itemvalue="Application.Quiz" />
<item itemvalue="Application.Quiz_E" />
<item itemvalue="Applet.TicTakToc_E_K" />
<item itemvalue="Application.TicTakToc_E_K" />
</list>
</recent_temporary>
</component>
@ -198,11 +181,8 @@
<workItem from="1562343569757" duration="85000" />
<workItem from="1562343774281" duration="2056000" />
<workItem from="1562347057096" duration="199000" />
<workItem from="1562379817416" duration="627000" />
<workItem from="1562534024971" duration="213000" />
<workItem from="1562718828390" duration="103000" />
<workItem from="1562781684319" duration="923000" />
<workItem from="1562789348995" duration="2632000" />
<workItem from="1562363354568" duration="615000" />
<workItem from="1562414362573" duration="942000" />
</task>
<task id="LOCAL-00001" summary="neue master">
<created>1562341097724</created>
@ -260,85 +240,49 @@
<option name="project" value="LOCAL" />
<updated>1562348184129</updated>
</task>
<task id="LOCAL-00009" summary="Fenster wird um Auswahl Fenster erweitert">
<created>1562349172389</created>
<task id="LOCAL-00009" summary="Beginn mit Quiz Spiel.&#10;//erste Giu elemente">
<created>1562415232279</created>
<option name="number" value="00009" />
<option name="presentableId" value="LOCAL-00009" />
<option name="project" value="LOCAL" />
<updated>1562349172389</updated>
<updated>1562415232279</updated>
</task>
<task id="LOCAL-00010" summary="Fenster wird um Auswahl Fenster erweitert">
<created>1562349989934</created>
<task id="LOCAL-00010" summary="Quiz Spiel. 1 Frage und Antwort">
<created>1562611989228</created>
<option name="number" value="00010" />
<option name="presentableId" value="LOCAL-00010" />
<option name="project" value="LOCAL" />
<updated>1562349989934</updated>
</task>
<task id="LOCAL-00011" summary="neue Tage Script">
<created>1562537775488</created>
<option name="number" value="00011" />
<option name="presentableId" value="LOCAL-00011" />
<option name="project" value="LOCAL" />
<updated>1562537775489</updated>
</task>
<task id="LOCAL-00012" summary="neue Tage Script">
<created>1562537854358</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1562537854358</updated>
</task>
<task id="LOCAL-00013" summary="neue GUI erstellt zum testen">
<created>1562717415095</created>
<option name="number" value="00013" />
<option name="presentableId" value="LOCAL-00013" />
<option name="project" value="LOCAL" />
<updated>1562717415095</updated>
</task>
<task id="LOCAL-00014" summary="neue GUI erstellt zum testen">
<created>1562717535565</created>
<option name="number" value="00014" />
<option name="presentableId" value="LOCAL-00014" />
<option name="project" value="LOCAL" />
<updated>1562717535565</updated>
</task>
<task id="LOCAL-00015" summary="Junit für Tage_D erzeugt">
<created>1562804519991</created>
<option name="number" value="00015" />
<option name="presentableId" value="LOCAL-00015" />
<option name="project" value="LOCAL" />
<updated>1562804519991</updated>
<updated>1562611989228</updated>
</task>
<option name="localTasksCounter" value="16" />
<option name="localTasksCounter" value="11" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="16104000" />
<option name="totallyTimeSpent" value="21621000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
<editor active="true" />
<frame x="619" y="60" width="1346" height="728" extended-state="0" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.11247335" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.49343833" visible="true" weight="0.28538102" />
<window_info id="Structure" order="1" sideWeight="0.5065617" side_tool="true" visible="true" weight="0.28538102" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
<window_info id="UI Designer" order="4" />
<window_info id="Capture Tool" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.3290461" />
<window_info anchor="bottom" id="Messages" order="0" sideWeight="0.48755834" weight="0.3277311" />
<window_info anchor="bottom" id="Message" order="1" />
<window_info anchor="bottom" id="Find" order="2" />
<window_info anchor="bottom" id="Run" order="3" weight="0.33118972" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.39978564" />
<window_info anchor="bottom" id="Run" order="3" sideWeight="0.4860031" visible="true" weight="0.35966387" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
<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="TODO" order="7" />
<window_info anchor="bottom" id="Docker" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="9" weight="0.3290461" />
<window_info anchor="bottom" id="Version Control" order="9" />
<window_info anchor="bottom" id="Database Changes" order="10" />
<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="Terminal" order="11" sideWeight="0.49924356" weight="0.32872504" />
<window_info anchor="bottom" id="Event Log" order="12" sideWeight="0.5139969" side_tool="true" visible="true" weight="0.35966387" />
<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" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@ -349,6 +293,37 @@
<window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Database" order="8" />
</layout>
<layout-to-restore>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25416037" />
<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" />
<window_info id="UI Designer" order="4" />
<window_info id="Capture Tool" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.32934928" />
<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.32872504" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
<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="TODO" order="7" />
<window_info anchor="bottom" id="Docker" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="9" />
<window_info anchor="bottom" id="Database Changes" order="10" />
<window_info anchor="bottom" id="Terminal" order="11" weight="0.32934928" />
<window_info anchor="bottom" id="Event Log" order="12" sideWeight="0.50075644" side_tool="true" visible="true" weight="0.32872504" />
<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" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="right" id="Theme Preview" order="4" />
<window_info anchor="right" id="Maven" order="5" />
<window_info anchor="right" id="Capture Analysis" order="6" />
<window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Database" order="8" />
</layout-to-restore>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
@ -358,11 +333,12 @@
<MESSAGE value="geburtstag sauber" />
<MESSAGE value="Main bereinigt" />
<MESSAGE value="junit klassen erst mal entfernen" />
<MESSAGE value="Fenster wird um Auswahl Fenster erweitert" />
<MESSAGE value="neue Tage Script" />
<MESSAGE value="neue GUI erstellt zum testen" />
<MESSAGE value="Junit für Tage_D erzeugt" />
<option name="LAST_COMMIT_MESSAGE" value="Junit für Tage_D erzeugt" />
<MESSAGE value="Beginn mit Quiz Spiel.&#10;//erste Giu elemente" />
<MESSAGE value="Quiz Spiel. 1 Frage und Antwort" />
<option name="LAST_COMMIT_MESSAGE" value="Quiz Spiel. 1 Frage und Antwort" />
</component>
<component name="com.intellij.coverage.CoverageDataManagerImpl">
<SUITE FILE_PATH="coverage/Alpha$Quiz.ic" NAME="Quiz Coverage Results" MODIFIED="1562358075708" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/testJFrame.java" />
@ -379,14 +355,14 @@
</entry>
<entry file="file://$PROJECT_DIR$/out/production/Alpha/Main.class" />
<entry file="file://$PROJECT_DIR$/src/D_Test1.java" />
<entry file="file://$PROJECT_DIR$/Info Datei Nur für Alpha">
<entry file="file://$PROJECT_DIR$/src/D_Test2.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="143">
<caret line="33" column="20" selection-start-line="33" selection-start-column="20" selection-end-line="33" selection-end-column="20" />
<state>
<caret column="13" selection-start-column="13" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/D_Test2.java">
<entry file="file://$PROJECT_DIR$/src/D_Test3.java">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="13" selection-start-column="13" selection-end-column="13" />
@ -394,39 +370,58 @@
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/D_Geburtstag.java" />
<entry file="file://$PROJECT_DIR$/src/Quiz_E.java" />
<entry file="file://$PROJECT_DIR$/src/RadioQuestion.java" />
<entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="473">
<caret line="99" column="1" selection-start-line="99" selection-start-column="1" selection-end-line="99" selection-end-column="1" />
<state relative-caret-position="610">
<caret line="97" selection-start-line="97" selection-end-line="97" />
<folding>
<element signature="e#1760#1761#0" expanded="true" />
<element signature="e#1813#1814#0" expanded="true" />
<element signature="e#1938#1939#0" expanded="true" />
<element signature="e#1993#1994#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
<entry file="file://$PROJECT_DIR$/src/MainGUI.form">
<provider selected="true" editor-type-id="ui-designer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/Quizjjj.java">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/JunitTest/src/Tage_DTest.java">
<entry file="file://$PROJECT_DIR$/src/Quizjjj.form">
<provider selected="true" editor-type-id="ui-designer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/QuizGame.form">
<provider selected="true" editor-type-id="ui-designer" />
</entry>
<entry file="file://$PROJECT_DIR$/src/QuizGame.java">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<caret line="15" column="25" lean-forward="true" selection-start-line="15" selection-start-column="25" selection-end-line="15" selection-end-column="25" />
<state relative-caret-position="34">
<caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Tage_D.java">
<entry file="file://$PROJECT_DIR$/src/Quiz_Spiel.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="17">
<caret line="5" column="33" selection-start-line="5" selection-start-column="33" selection-end-line="5" selection-end-column="33" />
<state relative-caret-position="64">
<caret line="62" lean-forward="true" selection-start-line="62" selection-end-line="62" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/MainGUI.form">
<provider selected="true" editor-type-id="ui-designer" />
<entry file="file://$PROJECT_DIR$/src/Quiz.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="86" column="111" selection-start-line="86" selection-start-column="111" selection-end-line="86" selection-end-column="111" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
<component name="masterDetails">

13
src/Quiz.form

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Quiz">
<grid id="27dc6" row-count="1" column-count="1" layout-manager="GridLayoutManager">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>

18
src/Quiz.java

@ -1,6 +1,8 @@
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.util.Random;
@ -25,6 +27,8 @@ public class Quiz extends JFrame {
JLabel frage1antworten1 = null;
JLabel frage2 = null;
JLabel frage1antworten2 = null;
JLabel html1 = null;
JMenuItem menuItem1 = null;
JMenuItem menuItem2 = null;
@ -39,7 +43,6 @@ public class Quiz extends JFrame {
this.fr = new JFrame("GUI");
this.fr.setSize(430, 630);
this.contentPane = new JPanel();
this.fr.setContentPane(this.contentPane);
@ -60,10 +63,18 @@ public class Quiz extends JFrame {
this.menuItem2.addActionListener(new CloseListener3());
this.label1 = new JLabel("Herzlich willkommen zu unserem Quiz!");
this.label1 = new JLabel("Herzlich Willkommen zu unserem Quiz!");
this.contentPane.add(label1);
this.label1.setForeground(Color.BLUE );
this.label2 = new JLabel("Beantworten Sie uns 5 kurze Fragen und gewinnen Sie 10000 Euro!");
;
this.contentPane.add(label2);
@ -90,6 +101,7 @@ public class Quiz extends JFrame {
this.contentPane.add(button1);
this.button1.addActionListener(new CloseListener2());
this.fr.setVisible(true);
}

254
src/Quiz_Spiel.java

@ -0,0 +1,254 @@
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Quiz_Spiel extends JFrame {
JLabel label_1;
JTextArea textarea_1;
JScrollPane sp_textarea_1;
JLabel label_2;
JLabel label_3;
JLabel label_4;
JLabel label_5;
JLabel label_6;
JLabel label_7;
JTextArea textarea_2;
JScrollPane sp_textarea_2;
JTextArea textarea_3;
JScrollPane sp_textarea_3;
JTextArea textarea_4;
JScrollPane sp_textarea_4;
JTextArea textarea_5;
JScrollPane sp_textarea_5;
JTextArea textarea_6;
JScrollPane sp_textarea_6;
JLabel label_8;
JLabel label_9;
JTextField textfield_4;
JButton button_1;
JTextField textfield_5;
JButton button_2;
JLabel label_10;
JTextField textfield_7;
JButton button_3;
JLabel label_11;
JLabel label_12;
JTextField textfield_8;
JTextField textfield_9;
JButton button_4;
JButton button_5;
JTextField textfield_10;
JLabel label_13;
public Quiz_Spiel() {
Quiz_SpielLayout customLayout = new Quiz_SpielLayout();
getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
getContentPane().setLayout(customLayout);
label_1 = new JLabel("label_1");
getContentPane().add(label_1);
textarea_1 = new JTextArea("textarea_1");
sp_textarea_1 = new JScrollPane(textarea_1);
getContentPane().add(sp_textarea_1);
label_2 = new JLabel("label_2");
getContentPane().add(label_2);
label_3 = new JLabel("label_3");
getContentPane().add(label_3);
label_4 = new JLabel("label_4");
getContentPane().add(label_4);
label_5 = new JLabel("label_5");
getContentPane().add(label_5);
label_6 = new JLabel("label_6");
getContentPane().add(label_6);
label_7 = new JLabel("label_7");
getContentPane().add(label_7);
textarea_2 = new JTextArea("textarea_2");
sp_textarea_2 = new JScrollPane(textarea_2);
getContentPane().add(sp_textarea_2);
textarea_3 = new JTextArea("textarea_3");
sp_textarea_3 = new JScrollPane(textarea_3);
getContentPane().add(sp_textarea_3);
textarea_4 = new JTextArea("textarea_4");
sp_textarea_4 = new JScrollPane(textarea_4);
getContentPane().add(sp_textarea_4);
textarea_5 = new JTextArea("textarea_5");
sp_textarea_5 = new JScrollPane(textarea_5);
getContentPane().add(sp_textarea_5);
textarea_6 = new JTextArea("textarea_6");
sp_textarea_6 = new JScrollPane(textarea_6);
getContentPane().add(sp_textarea_6);
label_8 = new JLabel("label_8");
getContentPane().add(label_8);
label_9 = new JLabel("label_9");
getContentPane().add(label_9);
textfield_4 = new JTextField("textfield_4");
getContentPane().add(textfield_4);
button_1 = new JButton("button_1");
getContentPane().add(button_1);
textfield_5 = new JTextField("textfield_5");
getContentPane().add(textfield_5);
button_2 = new JButton("button_2");
getContentPane().add(button_2);
label_10 = new JLabel("label_10");
getContentPane().add(label_10);
textfield_7 = new JTextField("textfield_7");
getContentPane().add(textfield_7);
button_3 = new JButton("button_3");
getContentPane().add(button_3);
label_11 = new JLabel("label_11");
getContentPane().add(label_11);
label_12 = new JLabel("label_12");
getContentPane().add(label_12);
textfield_8 = new JTextField("textfield_8");
getContentPane().add(textfield_8);
textfield_9 = new JTextField("textfield_9");
getContentPane().add(textfield_9);
button_4 = new JButton("button_4");
getContentPane().add(button_4);
button_5 = new JButton("button_5");
getContentPane().add(button_5);
textfield_10 = new JTextField("textfield_10");
getContentPane().add(textfield_10);
label_13 = new JLabel("label_13");
getContentPane().add(label_13);
setSize(getPreferredSize());
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
public static void main(String args[]) {
Quiz_Spiel window = new Quiz_Spiel();
window.setTitle("Quiz_Spiel");
window.pack();
window.show();
}
}
class Quiz_SpielLayout implements LayoutManager {
public Quiz_SpielLayout() {
}
public void addLayoutComponent(String name, Component comp) {
}
public void removeLayoutComponent(Component comp) {
}
public Dimension preferredLayoutSize(Container parent) {
Dimension dim = new Dimension(0, 0);
Insets insets = parent.getInsets();
dim.width = 1050 + insets.left + insets.right;
dim.height = 629 + insets.top + insets.bottom;
return dim;
}
public Dimension minimumLayoutSize(Container parent) {
Dimension dim = new Dimension(0, 0);
return dim;
}
public void layoutContainer(Container parent) {
Insets insets = parent.getInsets();
Component c;
c = parent.getComponent(0);
if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+8,360,32);}
c = parent.getComponent(1);
if (c.isVisible()) {c.setBounds(insets.left+256,insets.top+56,544,40);}
c = parent.getComponent(2);
if (c.isVisible()) {c.setBounds(insets.left+120,insets.top+120,136,32);}
c = parent.getComponent(3);
if (c.isVisible()) {c.setBounds(insets.left+840,insets.top+568,184,32);}
c = parent.getComponent(4);
if (c.isVisible()) {c.setBounds(insets.left+640,insets.top+344,136,32);}
c = parent.getComponent(5);
if (c.isVisible()) {c.setBounds(insets.left+280,insets.top+344,136,32);}
c = parent.getComponent(6);
if (c.isVisible()) {c.setBounds(insets.left+800,insets.top+120,136,32);}
c = parent.getComponent(7);
if (c.isVisible()) {c.setBounds(insets.left+456,insets.top+120,136,32);}
c = parent.getComponent(8);
if (c.isVisible()) {c.setBounds(insets.left+48,insets.top+168,288,40);}
c = parent.getComponent(9);
if (c.isVisible()) {c.setBounds(insets.left+384,insets.top+168,288,40);}
c = parent.getComponent(10);
if (c.isVisible()) {c.setBounds(insets.left+736,insets.top+168,288,40);}
c = parent.getComponent(11);
if (c.isVisible()) {c.setBounds(insets.left+200,insets.top+392,288,40);}
c = parent.getComponent(12);
if (c.isVisible()) {c.setBounds(insets.left+560,insets.top+392,288,40);}
c = parent.getComponent(13);
if (c.isVisible()) {c.setBounds(insets.left+48,insets.top+224,288,32);}
c = parent.getComponent(14);
if (c.isVisible()) {c.setBounds(insets.left+384,insets.top+224,288,32);}
c = parent.getComponent(15);
if (c.isVisible()) {c.setBounds(insets.left+48,insets.top+264,200,32);}
c = parent.getComponent(16);
if (c.isVisible()) {c.setBounds(insets.left+256,insets.top+264,80,32);}
c = parent.getComponent(17);
if (c.isVisible()) {c.setBounds(insets.left+384,insets.top+264,200,32);}
c = parent.getComponent(18);
if (c.isVisible()) {c.setBounds(insets.left+592,insets.top+264,80,32);}
c = parent.getComponent(19);
if (c.isVisible()) {c.setBounds(insets.left+736,insets.top+224,288,32);}
c = parent.getComponent(20);
if (c.isVisible()) {c.setBounds(insets.left+736,insets.top+264,200,32);}
c = parent.getComponent(21);
if (c.isVisible()) {c.setBounds(insets.left+944,insets.top+264,80,32);}
c = parent.getComponent(22);
if (c.isVisible()) {c.setBounds(insets.left+200,insets.top+448,288,32);}
c = parent.getComponent(23);
if (c.isVisible()) {c.setBounds(insets.left+560,insets.top+448,288,32);}
c = parent.getComponent(24);
if (c.isVisible()) {c.setBounds(insets.left+200,insets.top+488,200,32);}
c = parent.getComponent(25);
if (c.isVisible()) {c.setBounds(insets.left+560,insets.top+488,200,32);}
c = parent.getComponent(26);
if (c.isVisible()) {c.setBounds(insets.left+408,insets.top+488,80,32);}
c = parent.getComponent(27);
if (c.isVisible()) {c.setBounds(insets.left+768,insets.top+488,80,32);}
c = parent.getComponent(28);
if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+560,128,48);}
c = parent.getComponent(29);
if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+528,128,24);}
}
}
Loading…
Cancel
Save