From 4a6ecdc74d123c25cd7d2723539db94d64acbf02 Mon Sep 17 00:00:00 2001 From: structix Date: Tue, 17 Apr 2018 20:02:57 +0200 Subject: [PATCH] Sommer2015FS --- sae/java/sommer2015/Sommer2015FS/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/sommer2015fs/Form1$1.class | Bin 0 -> 748 bytes .../build/classes/sommer2015fs/Form1$2.class | Bin 0 -> 748 bytes .../build/classes/sommer2015fs/Form1$3.class | Bin 0 -> 529 bytes .../build/classes/sommer2015fs/Form1.class | Bin 0 -> 6099 bytes .../build/classes/sommer2015fs/Form1.form | 89 ++ .../Sommer2015FS/nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../Sommer2015FS/nbproject/project.properties | 74 + .../Sommer2015FS/nbproject/project.xml | 15 + .../Sommer2015FS/src/sommer2015fs/Form1.form | 89 ++ .../Sommer2015FS/src/sommer2015fs/Form1.java | 143 ++ 16 files changed, 1922 insertions(+) create mode 100644 sae/java/sommer2015/Sommer2015FS/build.xml create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_automatic_build create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_update_resources create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$1.class create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$2.class create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$3.class create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.class create mode 100644 sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.form create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/build-impl.xml create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/genfiles.properties create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/private/private.properties create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/private/private.xml create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/project.properties create mode 100644 sae/java/sommer2015/Sommer2015FS/nbproject/project.xml create mode 100644 sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.form create mode 100644 sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.java diff --git a/sae/java/sommer2015/Sommer2015FS/build.xml b/sae/java/sommer2015/Sommer2015FS/build.xml new file mode 100644 index 0000000..d3c02a2 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Sommer2015FS. + + + diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_automatic_build b/sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_update_resources b/sae/java/sommer2015/Sommer2015FS/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$1.class b/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$1.class new file mode 100644 index 0000000000000000000000000000000000000000..6c2941975d6b0a17de40742e674b00574ab76ccf GIT binary patch literal 748 zcmaJG$b&fFZjxW_PK-%LJqG zgFnC@WjwPsYC^*%J2UsrnRCy5{QUL(2Y^@D@X^4-0CRX0;67G7ta^CtVNKvhd8UhY zPhc@FY?i6~MX&$*q=*h|p7nQl|3({K?g}h-W&t*b0*!$kD}iRLje38PjZ}UtM=3oE zu}x$;l(}~H)Y)(W1;V$+sCIqqH7NyFu7e2#NA@C5)PZ(NgDTx^$IFoWCP{6f&FMQ;p4qX7^$<_+ zG=ztnA$)gwhBixfwPNkQK&z6MN^=^07@ezxT2^N&j&)HgR)Lke$|NxFDnGE;jo2s$kE0?AptjUAZpv%^}t~4Rc^`AzCe$6o;h7-$y|2EuMC1J5SKv`U27Y zirVK26LRG%t{b?`b?FZZ^Jvi`zG4$Z+`+<>Yj4WscP}BfzM=k)DyW`6r-06XbpBsD dA9t}xnmX>0yvA_L+#4L>2WVE|IDOpt{RSJJq5}W` literal 0 HcmV?d00001 diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$2.class b/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1$2.class new file mode 100644 index 0000000000000000000000000000000000000000..28584975d42dfefc39617c16cf2043c1ef8719de GIT binary patch literal 748 zcmaJ<+iuf96r4>`jE!kRDJ_?lwqT?*5p@#asi;yFwGxuKNK|>>INR2hy^Cx&d>2wH z5D$C+ABC7T5g;|HCGYMzJ3D92<>#;OKLEVMGZzg!^ss0>WJ##i}Kmq@a)+!&SvM3bIl{w_Wfbp9$E)%0asQj3U)I?yT9i7Rk4CUuC zR8ytPaKC~a*z>LxR9DkdVC_1XfcMdy=dn6WtWvK^cgONFnJZJV7Z<5(3%(C@KpFXndTy3Dsn*yJ=UfW3uiwQN!xk{W*(9=*4C+M{hfUZ;Br z(fNwnmkQ%^^)zlv&lWrej^l21D{hND-bg#EYdi zgI4!?oFUy5l3zw{hx<2n$DvH7>2+l7S!2xZ5A8>rx}M3d;{`(YFL*fcdL}lpWnvEV z)PGjf#5Q&qva?K~%CMv~EytF9>#8&4-H2A%dBqmKrp$RN)mWQ2*m5!maPPLWl`z!OZe=5GNOkfw;{ z{QLQs#8jR6f!OT`aqSJ-R6{)+@Qf5*{^^(#oj8_>jUj^-LXEsE7RfV6F+oV@2azmf A4FCWD literal 0 HcmV?d00001 diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.class b/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.class new file mode 100644 index 0000000000000000000000000000000000000000..7c5d81f0148a245d2d0f66536568060e74c80ced GIT binary patch literal 6099 zcmbVQ349b+8UMe{F}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yTZl1mIl6#k!_%wiYYnu9)}S*GkiG{Fd2KWmlDbmL5h${ zFkZ=g*_|9I^{Y-{CBysTic7M%lmU2Y7MI=6`4Chlc{`GU9aW7;s)9wXtbZ7!Yh9y= z47DjC-O-a+6>oTKP0`w#S$AV$L(TG4#TCuf#aXP*V$E%sq`Q# zHpeSkvS>Ytw&PeYs7m`WtS&HDS75Gc%-ku&xUG#Ram53!g_;<2>!?{1IvFnNeGP+C zy$3l{rtzTyZ@udzhSV zAoh)TC2q#8IO1AuEp1qd>Ex(vvyz{U_mh(#y@G}aUF$*z3GH*CLxgBS^1Yt#8~C4t z@L5DO+$hA{Gbm}*u&zf#2mc%R?<^||Q}`=Lrs8sy@7U7%hGB%x1(4@TJ>bexDyoX1 za`R0pILYVc!hFUA`FZ(JgImZo#0>A^dm}?6ro`|!!+Y_Ax%W%+8??jqJNbS4r|YVj d|26mpcXAKkzvBCkeE+Ff@H_Y!{BvFPe*uL3rB(m{ literal 0 HcmV?d00001 diff --git a/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.form b/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.form new file mode 100644 index 0000000..2cb2956 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/build/classes/sommer2015fs/Form1.form @@ -0,0 +1,89 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/build-impl.xml b/sae/java/sommer2015/Sommer2015FS/nbproject/build-impl.xml new file mode 100644 index 0000000..45b3457 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/genfiles.properties b/sae/java/sommer2015/Sommer2015FS/nbproject/genfiles.properties new file mode 100644 index 0000000..25c45e2 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=69b51468 +build.xml.script.CRC32=f0f54682 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=69b51468 +nbproject/build-impl.xml.script.CRC32=74e63266 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.properties b/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.properties new file mode 100644 index 0000000..31803a0 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/home/structix/.netbeans/8.2/build.properties diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.xml b/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.xml new file mode 100644 index 0000000..003fea0 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/home/structix/NetBeansProjects/Sommer2015FS/src/sommer2015fs/Form1.java + + + diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/project.properties b/sae/java/sommer2015/Sommer2015FS/nbproject/project.properties new file mode 100644 index 0000000..7b473e8 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Sommer2015FS.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=sommer2015fs.Form1 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/sae/java/sommer2015/Sommer2015FS/nbproject/project.xml b/sae/java/sommer2015/Sommer2015FS/nbproject/project.xml new file mode 100644 index 0000000..1f46fb2 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Sommer2015FS + + + + + + + + + diff --git a/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.form b/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.form new file mode 100644 index 0000000..2cb2956 --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.form @@ -0,0 +1,89 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.java b/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.java new file mode 100644 index 0000000..04589be --- /dev/null +++ b/sae/java/sommer2015/Sommer2015FS/src/sommer2015fs/Form1.java @@ -0,0 +1,143 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package sommer2015fs; + +/** + * + * @author structix + */ +public class Form1 extends javax.swing.JFrame { + + /** + * Creates new form Form1 + */ + public Form1() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jPanel1 = new javax.swing.JPanel(); + jComboBox1 = new javax.swing.JComboBox<>(); + jTextField1 = new javax.swing.JTextField(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Freizeitschuhe", "Wanderschuhe", "Bergsteigerschuhe" })); + jComboBox1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jComboBox1ActionPerformed(evt); + } + }); + + jTextField1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField1ActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jComboBox1, 0, 376, Short.MAX_VALUE) + .addComponent(jTextField1)) + .addContainerGap()) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 233, Short.MAX_VALUE) + .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + ); + + pack(); + }// //GEN-END:initComponents + + private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField1ActionPerformed + + private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed + //Event ActionPerformed wird nach jeder Aktion mit der ComboBox + //ausgeführt. Das heißt, nachdem auswählen wird dieser Code getriggert. + + //Name des ausgewählten Items abfragen + String selItem = jComboBox1.getSelectedItem().toString(); + //Über die Hilfsmethode die SQL Abfrage als String speichern + String sqlcode = getSQLStatement(selItem); + //Ins Textfeld eintragen + jTextField1.setText(sqlcode); + }//GEN-LAST:event_jComboBox1ActionPerformed + + private String getSQLStatement(String category) { + return "SELECT * FROM schuhe WHERE Kategorie = " + category; + } + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + // + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(Form1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Form1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Form1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Form1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + // + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new Form1().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JComboBox jComboBox1; + private javax.swing.JPanel jPanel1; + private javax.swing.JTextField jTextField1; + // End of variables declaration//GEN-END:variables +}