Browse Source

Tage Script umgestellt von Eugens Quiz Idee

new_repo
Hauch IT 5 years ago
parent
commit
adc41bb9d8
  1. 106
      .idea/workspace.xml
  2. 101
      src/Tage_D.java

106
.idea/workspace.xml

@ -3,13 +3,6 @@
<component name="ChangeListManager">
<list default="true" id="41dc023d-0769-466f-850a-8e3eed9fe5fa" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/D_Geburtstag.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Main$1.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Main$2.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Main$ActionListener1.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Main.class" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Alpha/Quiz_E.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Alpha/Quiz_E.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Tage_D.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Tage_D.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
@ -27,25 +20,19 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Tage_D.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="174">
<caret line="41" selection-start-line="41" selection-end-line="41" />
<state relative-caret-position="391">
<caret line="54" column="44" lean-forward="true" selection-start-line="54" selection-start-column="44" selection-end-line="54" selection-end-column="44" />
<folding>
<element signature="e#3315#3316#0" expanded="true" />
<element signature="e#3495#3496#0" expanded="true" />
<element signature="e#2655#2656#0" expanded="true" />
<element signature="e#3183#3184#0" expanded="true" />
<element signature="e#3238#3239#0" expanded="true" />
<element signature="e#3364#3365#0" expanded="true" />
<element signature="e#3419#3420#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Quiz_E.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="357">
<caret line="37" selection-start-line="37" selection-end-line="38" selection-end-column="45" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
@ -59,6 +46,7 @@
<findStrings>
<find>pa.</find>
<find>contantPane</find>
<find>this.</find>
</findStrings>
<replaceStrings>
<replace>this.</replace>
@ -82,10 +70,9 @@
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-8" />
<option name="y" value="-8" />
<option name="width" value="1346" />
<option name="height" value="728" />
<option name="x" value="-7" />
<option name="width" value="974" />
<option name="height" value="1057" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
@ -122,6 +109,7 @@
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="restartRequiresConfirmation" value="false" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
@ -135,7 +123,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Application.Main">
<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" />
<module name="Alpha" />
@ -157,8 +145,8 @@
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="fenster" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="fenster" />
<configuration name="Tage_D" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Tage_D" />
<module name="Alpha" />
<method v="2">
<option name="Make" enabled="true" />
@ -173,11 +161,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.fenster" />
</list>
</recent_temporary>
</component>
@ -269,35 +257,49 @@
<option name="project" value="LOCAL" />
<updated>1562349989934</updated>
</task>
<option name="localTasksCounter" value="11" />
<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>
<option name="localTasksCounter" value="13" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="8748000" />
<option name="totallyTimeSpent" value="12420000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.07942431" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.07942431" />
<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" visible="true" weight="0.3290461" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.3290461" />
<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.32934928" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
<window_info active="true" anchor="bottom" id="Run" order="3" visible="true" weight="0.33118972" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.39978564" />
<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="Version Control" order="9" weight="0.3290461" />
<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="Terminal" order="11" weight="0.3290461" />
<window_info anchor="bottom" id="Event Log" order="12" side_tool="true" />
<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" />
@ -319,7 +321,8 @@
<MESSAGE value="Main bereinigt" />
<MESSAGE value="junit klassen erst mal entfernen" />
<MESSAGE value="Fenster wird um Auswahl Fenster erweitert" />
<option name="LAST_COMMIT_MESSAGE" value="Fenster wird um Auswahl Fenster erweitert" />
<MESSAGE value="neue Tage Script" />
<option name="LAST_COMMIT_MESSAGE" value="neue Tage Script" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/testJFrame.java" />
@ -359,27 +362,36 @@
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/D_Geburtstag.java" />
<entry file="file://$PROJECT_DIR$/src/Main.java">
<entry file="file://$PROJECT_DIR$/src/Quiz_E.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="425">
<caret line="27" selection-start-line="27" selection-end-line="27" />
<state relative-caret-position="357">
<caret line="37" selection-start-line="37" selection-end-line="38" selection-end-column="45" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Quiz_E.java">
<entry file="file://$PROJECT_DIR$/src/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="357">
<caret line="37" selection-start-line="37" selection-end-line="38" selection-end-column="45" />
<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" />
<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" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Tage_D.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="174">
<caret line="41" selection-start-line="41" selection-end-line="41" />
<state relative-caret-position="391">
<caret line="54" column="44" lean-forward="true" selection-start-line="54" selection-start-column="44" selection-end-line="54" selection-end-column="44" />
<folding>
<element signature="e#3315#3316#0" expanded="true" />
<element signature="e#3495#3496#0" expanded="true" />
<element signature="e#2655#2656#0" expanded="true" />
<element signature="e#3183#3184#0" expanded="true" />
<element signature="e#3238#3239#0" expanded="true" />
<element signature="e#3364#3365#0" expanded="true" />
<element signature="e#3419#3420#0" expanded="true" />
</folding>
</state>
</provider>

101
src/Tage_D.java

@ -1,9 +1,9 @@
import java.awt.JobAttributes;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.*;
public class Tage_D {
public class Tage_D extends JFrame {
JFrame fr = null;
JPanel Panele = null;
@ -22,6 +22,7 @@ public class Tage_D {
JTextField j2 = null;
JTextField j3 = null;
JTextField j4 = null;
JTextField j5 = null;
JMenuItem menuItem1 = null;
JMenuItem menuItem2 = null;
@ -34,62 +35,39 @@ public class Tage_D {
public Tage_D() {
this.fr = new JFrame("GUI");
this.fr.setSize(300, 900);
fr = new JFrame("GUI");
fr.setSize(350, 700);
fr.setLayout(new FlowLayout());
this.Panele = new JPanel();
this.fr.setContentPane(this.Panele);
Panele = new JPanel();
fr.setContentPane(Panele);
this.bar = new JMenuBar();
this.fr.setJMenuBar(bar);
this.mF = new JMenu("File");
this.mH = new JMenu("Help");
this.bar.add(mF);
this.bar.add(mH);
bar = new JMenuBar();
fr.setJMenuBar(bar);
mF = new JMenu("File");
mH = new JMenu("Help");
bar.add(mF);
bar.add(mH);
this.menuItem1 = new JMenuItem("Exit"); this.mF.add(menuItem1);
this.menuItem2 = new JMenuItem("Info"); this.mH.add(menuItem2);
menuItem1 = new JMenuItem("Exit"); mF.add(menuItem1);
menuItem2 = new JMenuItem("Info"); mH.add(menuItem2);
this.label4= new JLabel("Ein Tool der CI!."); this.Panele.add(label4);
this.label5= new JLabel("Wollen Sie erfahren, Wie viel Zeit bleibt dir in deinem Leben noch?");
this.Panele.add(label5);
this.label1 = new JLabel("Wie ist Ihr Name?"); this.Panele.add(label1);
j1 = new JTextField("Ein Tool der CI"); j1.setEditable(false); j1.setSize(450,30); ; Panele.add(j1);
j2 = new JTextField("Tools von Daniel Hauch"); j2.setEditable(false); Panele.add(j2); j2.setSize(450,30); Panele.add(j2);
j3 = new JTextField("Wie ist Ihr Name?"); j3.setEditable(true); Panele.add(j2); j3.setSize(450,30); Panele.add(j3);
this.j1 = new JTextField("", 20);
this.Panele.add(j1);
this.j1.setSize(160,20);;
this.label2 = new JLabel("Wie alt sind Sie?");
this.Panele.add(label2);
this.j2 = new JTextField("", 20);
this.Panele.add(j2);
this.j2.setSize(160,20);
button1 = new JButton("Erfahren"); Panele.add(button1);
this.label3 = new JLabel("Was machen Sie beruflich?");
this.Panele.add(label3);
this.j3 = new JTextField("", 20);
this.Panele.add(j3);
j4 = new JTextField("Sie sterben in ___ Jahren!"); Panele.add(j4);
this.button1 = new JButton("Erfahren");
this.Panele.add(button1);
this.j4 = new JTextField("Sie sterben in ___ Jahren!");
this.Panele.add(j4);
this.label6 = new JLabel("Die Wahrheit ist schwer zu ertragen.");
this.Panele.add(label6);
this.label7 = new JLabel("ich hab eine Lösung für dich!");
this.Panele.add(label7);
ButtonGroup buttonGroup = new ButtonGroup();
JRadioButton hzeit = new JRadioButton("Hochzeit");
hzeit.setBounds(100, 170, 100, 20);
buttonGroup.add(hzeit);
this.Panele.add(hzeit);
buttonGroup.add(hzeit); this.Panele.add(hzeit);
JRadioButton gtag = new JRadioButton("Geburtstag");
gtag.setBounds(250, 170, 100, 20);
buttonGroup.add(gtag);
this.Panele.add(gtag);
buttonGroup.add(gtag); this.Panele.add(gtag);
JLabel auswahl = new JLabel("Ihre Auswahl:");
auswahl.setBounds(10, 200, 100, 20);
@ -111,21 +89,46 @@ public class Tage_D {
});
this.fr.setVisible(true);
gtag.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ie) {
text1.setText("FEMALE");
}
});
this.fr.setVisible(true);
this.fr.setAlwaysOnTop(true);
DerHandler handler = new DerHandler();
menuItem1.addActionListener(handler);
gtag.addActionListener(handler);
hzeit.addActionListener(handler);
}
// Action Listener
private class ActionListener1 implements ActionListener {
private class DerHandler implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
public void actionPerformed(ActionEvent event) {
String string = "";
/*
if(event.getSource()=hzeit)
string=String.format("Name: %s", event.getActionCommand());
else if(event.getSource()==gtag)
string=String.format("passwortFeld2: %s", event.getActionCommand());
System.exit(0);
JOptionPane.showMessageDialog(null, string);
}
}
*/
}
}
public static void main(String[] args) {
Tage_D gb = new Tage_D();

Loading…
Cancel
Save