From 2623b47bd3bb0e632812259a6c639ed1eda4f222 Mon Sep 17 00:00:00 2001 From: Harvie Date: Mon, 24 May 2010 23:44:24 +0200 Subject: [PATCH] Some booring school homeworks in java --- java/Kalkulator/applet.policy | 3 + java/Kalkulator/build.xml | 74 ++ java/Kalkulator/build/built-jar.properties | 2 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/Kalkulator/AppGui$1.class | Bin 0 -> 1476 bytes .../build/classes/Kalkulator/AppGui.class | Bin 0 -> 1344 bytes .../build/classes/Kalkulator/Kalkulator.class | Bin 0 -> 932 bytes .../build/classes/Kalkulator/Kalkulator.html | 28 + .../build/classes/Kalkulator/Kalkulator.rs | 3 + java/Kalkulator/dist/Kalkulator.jar | Bin 0 -> 5590 bytes java/Kalkulator/dist/README.TXT | 33 + java/Kalkulator/manifest.mf | 3 + java/Kalkulator/nbproject/build-impl.xml | 805 ++++++++++++++++++ java/Kalkulator/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 3 + java/Kalkulator/nbproject/private/private.xml | 4 + java/Kalkulator/nbproject/project.properties | 63 ++ java/Kalkulator/nbproject/project.xml | 15 + .../Kalkulator/src/Kalkulator/Kalkulator.html | 28 + .../Kalkulator/src/Kalkulator/Kalkulator.java | 63 ++ java/SinusDiff/applet.policy | 3 + java/SinusDiff/build.xml | 74 ++ java/SinusDiff/build/built-jar.properties | 2 + .../build/classes/SinusDiff/AppGui$1.class | Bin 0 -> 1478 bytes .../build/classes/SinusDiff/AppGui.class | Bin 0 -> 3134 bytes .../build/classes/SinusDiff/Kalkulator.html | 28 + .../build/classes/SinusDiff/SinusDiff.class | Bin 0 -> 1911 bytes .../build/classes/SinusDiff/SinusDiff.html | 36 + java/SinusDiff/manifest.mf | 3 + java/SinusDiff/nbproject/build-impl.xml | 805 ++++++++++++++++++ java/SinusDiff/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + java/SinusDiff/nbproject/private/private.xml | 4 + java/SinusDiff/nbproject/project.properties | 63 ++ java/SinusDiff/nbproject/project.xml | 15 + java/SinusDiff/src/SinusDiff/SinusDiff.html | 36 + java/SinusDiff/src/SinusDiff/SinusDiff.java | 134 +++ 37 files changed, 2348 insertions(+) create mode 100644 java/Kalkulator/applet.policy create mode 100644 java/Kalkulator/build.xml create mode 100644 java/Kalkulator/build/built-jar.properties create mode 100644 java/Kalkulator/build/classes/.netbeans_automatic_build create mode 100644 java/Kalkulator/build/classes/Kalkulator/AppGui$1.class create mode 100644 java/Kalkulator/build/classes/Kalkulator/AppGui.class create mode 100644 java/Kalkulator/build/classes/Kalkulator/Kalkulator.class create mode 100644 java/Kalkulator/build/classes/Kalkulator/Kalkulator.html create mode 100644 java/Kalkulator/build/classes/Kalkulator/Kalkulator.rs create mode 100644 java/Kalkulator/dist/Kalkulator.jar create mode 100644 java/Kalkulator/dist/README.TXT create mode 100644 java/Kalkulator/manifest.mf create mode 100644 java/Kalkulator/nbproject/build-impl.xml create mode 100644 java/Kalkulator/nbproject/genfiles.properties create mode 100644 java/Kalkulator/nbproject/private/private.properties create mode 100644 java/Kalkulator/nbproject/private/private.xml create mode 100644 java/Kalkulator/nbproject/project.properties create mode 100644 java/Kalkulator/nbproject/project.xml create mode 100644 java/Kalkulator/src/Kalkulator/Kalkulator.html create mode 100644 java/Kalkulator/src/Kalkulator/Kalkulator.java create mode 100644 java/SinusDiff/applet.policy create mode 100644 java/SinusDiff/build.xml create mode 100644 java/SinusDiff/build/built-jar.properties create mode 100644 java/SinusDiff/build/classes/SinusDiff/AppGui$1.class create mode 100644 java/SinusDiff/build/classes/SinusDiff/AppGui.class create mode 100644 java/SinusDiff/build/classes/SinusDiff/Kalkulator.html create mode 100644 java/SinusDiff/build/classes/SinusDiff/SinusDiff.class create mode 100644 java/SinusDiff/build/classes/SinusDiff/SinusDiff.html create mode 100644 java/SinusDiff/manifest.mf create mode 100644 java/SinusDiff/nbproject/build-impl.xml create mode 100644 java/SinusDiff/nbproject/genfiles.properties create mode 100644 java/SinusDiff/nbproject/private/private.properties create mode 100644 java/SinusDiff/nbproject/private/private.xml create mode 100644 java/SinusDiff/nbproject/project.properties create mode 100644 java/SinusDiff/nbproject/project.xml create mode 100644 java/SinusDiff/src/SinusDiff/SinusDiff.html create mode 100644 java/SinusDiff/src/SinusDiff/SinusDiff.java diff --git a/java/Kalkulator/applet.policy b/java/Kalkulator/applet.policy new file mode 100644 index 0000000..53a9d40 --- /dev/null +++ b/java/Kalkulator/applet.policy @@ -0,0 +1,3 @@ +grant { +permission java.security.AllPermission; +}; diff --git a/java/Kalkulator/build.xml b/java/Kalkulator/build.xml new file mode 100644 index 0000000..82680c6 --- /dev/null +++ b/java/Kalkulator/build.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project Kalkulator. + + + diff --git a/java/Kalkulator/build/built-jar.properties b/java/Kalkulator/build/built-jar.properties new file mode 100644 index 0000000..220f5f8 --- /dev/null +++ b/java/Kalkulator/build/built-jar.properties @@ -0,0 +1,2 @@ +#Fri Apr 02 01:58:29 CEST 2010 +/home/harvie/Work/NetBeansProjects/Kalkulator= diff --git a/java/Kalkulator/build/classes/.netbeans_automatic_build b/java/Kalkulator/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/java/Kalkulator/build/classes/Kalkulator/AppGui$1.class b/java/Kalkulator/build/classes/Kalkulator/AppGui$1.class new file mode 100644 index 0000000000000000000000000000000000000000..5dc455138356b08e8817c1c98df6dff81c4c2863 GIT binary patch literal 1476 zcmbtUU31e`5Ir}MrQj$ygoHRWG$}Zs2!aVsDQPGW@&OJGUr9ZanZ8`xmmsW28Cf>z zFX>xf``nq@nJF{<0e$X|=&u0Il|8trnZ6*+-QBzQ?&|E>9sTw0k3Rt{qI3%5_(qFc zT70X;Z7r75n81>S@6uSooir?buf<*S{vHGQSh$zQ2$rxsxt?(n=y~}j&a0*h;{0lIWkcI58q%O@#sbs- zcTGSvxz@QFT#-O}Cu~F&wdrZ>nI6yAb!X|>2r7P9XM49*{3@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ifR0g8T`S_v#j`I)DdQ! z<7yJWF=vYXx=8kU=ETVRiFs3q^Bm3W0yR|Ok}<_!+!{}tA(rCF&u|HsVG&uw74F*1 RF0yJ2vshwuSU1ba=RZ~EL^1#X literal 0 HcmV?d00001 diff --git a/java/Kalkulator/build/classes/Kalkulator/Kalkulator.class b/java/Kalkulator/build/classes/Kalkulator/Kalkulator.class new file mode 100644 index 0000000000000000000000000000000000000000..1f9e72fae32ce50d091af814fca63def4ad00aff GIT binary patch literal 932 zcmZva-A)rh6vzM5uZ4B#7f=wtilS~?>4Ko3B_yT>gEneXQ-fX&bf}}--DbO`#w%aR zn>LZe2k&@qR+hE*L=<=n(A4Qn&F zts{Xu%G_1PR3@)XK|@hPi6OBk9qI2gM9o5jAy##pf+1Ctj(FK?9}DjdKej27t+^-M zZg5X3e;kbYA7qzdsrG`~pL#a;UC#=)6~ZYvEp09xhMf7n_K}})%jQnYs{5XFT9rVR zdoAM3UvSL8P8k-0y3ba(PbJp#1CO@_;q|)P^G?KpR2`;5<+4&SkV4wPJ*+ci!ZYhh zr}L~QHIxll*r1!K9%6@KaRM4{=^9hO5r`q# z5`NWneBt=7xkLTt%))3Iyzg7;gk~f>x>eASH5H}j;msyP(VQ%4cU*^Xl_}2OAoVv+ z{(subUEx0!r@UwTRom@~R~_MTU%K={G4oKphejE7`GuN{n}Raz-qbTRunPD60)IQ!6C~m@Q=@Uo-62 z0D5VFOA{g`k}^W273vw-fsS2LdxXn)3= + + Applet HTML Page + + + + + +


Applet HTML Page

+ +

+ +

+ +
Generated by NetBeans IDE + + diff --git a/java/Kalkulator/build/classes/Kalkulator/Kalkulator.rs b/java/Kalkulator/build/classes/Kalkulator/Kalkulator.rs new file mode 100644 index 0000000..936eb8a --- /dev/null +++ b/java/Kalkulator/build/classes/Kalkulator/Kalkulator.rs @@ -0,0 +1,3 @@ +Kalkulator.AppGui$1 +Kalkulator.AppGui +Kalkulator.Kalkulator diff --git a/java/Kalkulator/dist/Kalkulator.jar b/java/Kalkulator/dist/Kalkulator.jar new file mode 100644 index 0000000000000000000000000000000000000000..59b6f72d6606eb89b120cdc29d0f3d6d3af2e29d GIT binary patch literal 5590 zcmc&&%~Ko66@LSgMvR5|u)Q|^Y-4Q80!iR+W5HS=VPs371(^+-J?tP2Fw1C0H5y^F zRY`Vp$t9JXQn}^iN-BFxRg9}bRZh8NPpR5mQ({Se|K95^KJN}F#J~6YzMpbmnne!o)5q{OwDy@^c!` z0c#<>kekacmlB1!f@4y>dX;t~G)?7JCs6vMCfgY^4=?=XcR?b4hT0j^wc68$J~ELgvzlLg{hQySeS%hc zVAgwF+~?u}7Z163q|h08zD$(h7F?n@OGaw@5Z0hxqafwdlTg>Fmo|{v;sXNmW+0i4~ z+eP}C{daUvwOcC^1!k>^CQ)BrH?@UEbxpHN>Y4${VBUfgtf;om-%VnGry>!-f;rRF zY}dgwP|h4yePjZY>r=}P{J*H#>y};BVCySUSM{X&(n)IDn&~9dE=!i*AG1o`+O{Ln z#cyJhNZQ7e!PCHFOQbAY4ZEz(>8yL7Z|4NBEGSvCY*=+HZ$Wc5t%^+Z5xPRT2wkGf z5jsofB5+R>=ef8*7bWWFo=HQ6M`Wx9Y#`IK2tB7fcPvC`ffgk?>oYAoHpI{He$ng* z73n=LmLjxFd6`NPdO-#FfUjC|e*?6QwYc`NR>u4lO`Yk(EiXu!G{1%?l)wVGyPK`%x# zhlMrG0GaWlWF8va=MOuUrw?4PZ6dDEViI+45+nc#XW)tNP_VzBSC9xb7SXM-j&6;m zbZaa#K%xuJ74($oD&C&qJA_)qM&FPW8+$`tvG^P6jtvFgP#`uGd_%$5TMGTk?KzAx zgq}nrbPZ+1eHZw;i7$zwbPFZR{Ue3(M`Z4iyc+v8b?s94E%oe@l50}B4=9fUO;W%o zh0cXe{`6;bHX1z_I87(4t#a;MsBhy@=of$gE5rr&sCV@(os8~M-(deP4eZk3E}inV zJnzox1`R^9>(J{VG+U+^RcX}K{4N2E$!u!QZ!xsM-t-}jQ5;sePB}{8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vWSSRdu^OOD_qY+?ZhLE}33QW>*zPVAbxm`JwM+wuAT~9lmQdnxUf20M)2aC- z@qR8-nx7h;7$3hreAp{G8Q>jvxN{LMl`a=}g@oAD>PoJ#mnmgm9?Wp;~HgaiJuZb01`<;uF)U-1JjE{_-^$ z-%c%P&Wxs-xD(4{Q^_2}F*^(M+!%Vh`=Iz->N?$h{B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/java/Kalkulator/nbproject/genfiles.properties b/java/Kalkulator/nbproject/genfiles.properties new file mode 100644 index 0000000..6577b61 --- /dev/null +++ b/java/Kalkulator/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d9ae5764 +build.xml.script.CRC32=788da26d +build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45 +# 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=d9ae5764 +nbproject/build-impl.xml.script.CRC32=81593c81 +nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45 diff --git a/java/Kalkulator/nbproject/private/private.properties b/java/Kalkulator/nbproject/private/private.properties new file mode 100644 index 0000000..f76702a --- /dev/null +++ b/java/Kalkulator/nbproject/private/private.properties @@ -0,0 +1,3 @@ +compile.on.save=true +jaxbwiz.endorsed.dirs=/usr/share/netbeans/ide12/modules/ext/jaxb/api +user.properties.file=/home/harvie/.netbeans/6.8/build.properties diff --git a/java/Kalkulator/nbproject/private/private.xml b/java/Kalkulator/nbproject/private/private.xml new file mode 100644 index 0000000..c1f155a --- /dev/null +++ b/java/Kalkulator/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/java/Kalkulator/nbproject/project.properties b/java/Kalkulator/nbproject/project.properties new file mode 100644 index 0000000..bc789c8 --- /dev/null +++ b/java/Kalkulator/nbproject/project.properties @@ -0,0 +1,63 @@ +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} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Kalkulator.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.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.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= +jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api" +main.class=Kalkulator.Kalkulator +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +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 +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs=-Djava.security.policy=applet.policy +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/java/Kalkulator/nbproject/project.xml b/java/Kalkulator/nbproject/project.xml new file mode 100644 index 0000000..e79652d --- /dev/null +++ b/java/Kalkulator/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Kalkulator + + + + + + + + + diff --git a/java/Kalkulator/src/Kalkulator/Kalkulator.html b/java/Kalkulator/src/Kalkulator/Kalkulator.html new file mode 100644 index 0000000..be83f3c --- /dev/null +++ b/java/Kalkulator/src/Kalkulator/Kalkulator.html @@ -0,0 +1,28 @@ + + + Applet HTML Page + + + + + +


Applet HTML Page

+ +

+ +

+ +
Generated by NetBeans IDE + + diff --git a/java/Kalkulator/src/Kalkulator/Kalkulator.java b/java/Kalkulator/src/Kalkulator/Kalkulator.java new file mode 100644 index 0000000..4424fee --- /dev/null +++ b/java/Kalkulator/src/Kalkulator/Kalkulator.java @@ -0,0 +1,63 @@ +package Kalkulator; + +import javax.swing.*; + +/** + * This example shows how to create GUI application which can be run both + * as HTML embeded web applet and as standalone application + * @author harvie + */ + +class AppGui extends JPanel { + AppGui() { + setLayout(new java.awt.GridLayout(0, 2)); + + JLabel lblVklad = new JLabel("vklad"); + final JTextField txtVklad = new JTextField(); + + JLabel lblMira = new JLabel("urok. mira"); + final JTextField txtMira = new JTextField(); + + JLabel lblRoky = new JLabel("pocet let"); + final JTextField txtRoky = new JTextField(); + + JButton btnGo = new JButton("Go"); + final JLabel lblCelkem = new JLabel("zadej data"); + + add(lblVklad); + add(txtVklad); + add(lblMira); + add(txtMira); + add(lblRoky); + add(txtRoky); + add(btnGo); + add(lblCelkem); + + btnGo.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + double v = new Double(txtVklad.getText()); + double u = new Double(txtMira.getText()); + double r = new Double(txtRoky.getText()); + for(;r>0;r--) v += v*(u/100); + lblCelkem.setText(v+""); + } + }); + } +} + +public class Kalkulator extends JApplet { + + public void init() { + getContentPane().add(new AppGui()); + } + + public static void main(String[] args) { + JFrame f = new JFrame("Applet window"); + f.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + f.setSize(640,480); + f.getContentPane().add(new AppGui()); + f.setVisible(true); + } + + // TODO overwrite start(), stop() and destroy() methods +} diff --git a/java/SinusDiff/applet.policy b/java/SinusDiff/applet.policy new file mode 100644 index 0000000..53a9d40 --- /dev/null +++ b/java/SinusDiff/applet.policy @@ -0,0 +1,3 @@ +grant { +permission java.security.AllPermission; +}; diff --git a/java/SinusDiff/build.xml b/java/SinusDiff/build.xml new file mode 100644 index 0000000..9bd5267 --- /dev/null +++ b/java/SinusDiff/build.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project SinusDiff. + + + diff --git a/java/SinusDiff/build/built-jar.properties b/java/SinusDiff/build/built-jar.properties new file mode 100644 index 0000000..61c5934 --- /dev/null +++ b/java/SinusDiff/build/built-jar.properties @@ -0,0 +1,2 @@ +#Thu Apr 29 12:52:30 CEST 2010 +/home/harvie/Work/NetBeansProjects/SinusDiff= diff --git a/java/SinusDiff/build/classes/SinusDiff/AppGui$1.class b/java/SinusDiff/build/classes/SinusDiff/AppGui$1.class new file mode 100644 index 0000000000000000000000000000000000000000..447f764d0c6c8ae1e832b93f6aad3d7228155187 GIT binary patch literal 1478 zcmbtU-BQ~|6#f=ui5T%y*MMnBAgO7E6XMX)03m@845_I}(wKUNncm3u0t!N+vh2_& z>0NJo-I?0VBr|z{JVPF!Pto>U*@Hve$xWr%@0>lm=j=J(+1a;$zj^~;0i`QQ;#&oG z6)Y)ORr#V z%kHLhkL8I#@^YAhU6w9G=;4u5OWzSl6pD^lujQPBgY3rX>EpViR_{BW6RrvTZ1pZ* z4%p4>|JmD#&6NbSO}{DyMhcE6pVUvvGT5`rE-i_IU$Nbi9XM*0z10g%7E=gDBx zwQDs=OR^{P^a4v8u`8kDd(UKW;0Gs?L{D2$=2`n?n3WCbh1rd0%a+ntRYv`?5eiIw zY@2{+aO61Z9DzW*=+}da+;&vz!xtpqR$XNpTVBQWYi#YV43GS(f$vOABX8m=u9=uX z%EY9C&lG%)DS=VtnRRX6hMZp~0|s_Xe2;>1+%@q8PX#8r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8nHl)#NyTVi7q#H99)Uo~l>n5nb#fw&j*M5aHz5emV+OOwL6(IkI0~0xoCh zFlXzFGN7Bvo>{6m#sV!Ymyr^FW~P-s&oVmfBST-1nbFH-L;N4uYFHX(Zd2#cu!}SH zf5cJ8@+}l}CT~@wgAOm#&45^uvcM}c$4I4U7#zNE@{AN{d%ZBjMZLn|R9VwWeSul; z@?@@K7SlzmP>}nd;A-$@rSLcR2mg19Ti6n!KX{vE#wBU1=FI5K=+r3t)UUyJ}=u)bDr$hht+cO22w_%+=Yu?8^%hOW9F9zi_9#%sGIDUIHSy%71Mj`W3=`kTy*ox)CUFqi1Pc! zN6h=m@!|4TJ_p{)7r|TkzIiL(G;ihGwxvkIk(rk+qJ zRfYV+RYb^aCR0w4;&U5NPlkFUiHK;tgtJ}CUCW8ca_SnQS(2Ewf%p^I4czwpKwYGX zXj@&>8}3O&_9P++`fqtAqO82V`YPi$LB8rK#7VoLVhlk$O>B+D+_&=fD@4(S`;o@(pcZ#|cYT1|L*yT& z + + Applet HTML Page + + + + + +


Applet HTML Page

+ +

+ +

+ +
Generated by NetBeans IDE + + diff --git a/java/SinusDiff/build/classes/SinusDiff/SinusDiff.class b/java/SinusDiff/build/classes/SinusDiff/SinusDiff.class new file mode 100644 index 0000000000000000000000000000000000000000..63709d34a3266233f26900d91b1719a0e72c8144 GIT binary patch literal 1911 zcmb7F+j84f6kW%c$QEiYcAGXO4dGTC8{#%l0yvZgCn+f=Epofq zT>4NR`2}A4+%n@ZbfzD`SMVha>&WsYQ_nEGoXb9YueJ9&`$&KN^XD@F7qPG6EZ$b| zP6C%yr17qb2$qvvy(hQttM~u~1uF@Bs3M7FIb4>*M+sb!Gd+@6l~ErnC@NS}v5pND zSMf;_o46)dpUUHs96nR9B`~Hpn^#+=K&n(W?UuJ@)@u3Hz*gYtifNnvWr1jBVMicV zbgG8HM9H*`tyW{taJTh6iPPzENF2tQbw-bZnW9=Q~XSrD}M->wG7WSgBZH^=jE^xfNr>l(mlci&&Hi zYdD8Ffyur#RF9g~nx2O1xFKCW*YF}{HQYp5!M27kKs{3u;CSW&C#b$<`135M>a;c7 z!j~F$ahs(qUC?j`cQxcB<=jB8Q8iJsK~DXZg0D2(!`BMF(V$~bK}ACqhK3sI8Wu69 zAurL>$8ziDB%sv||AsClricRPGeg4mF70^}n_!e96&NR8(cz8Qgte*ebY`I&uebfY zJYjbjF7GGMDu2vMiS=q#ARB^r4;xL#CS2hdPR}TC#xwjiqo%hkzi2t0alL7{y6geA zKxR{RoI;PX`8|_~XEp zO)GCX^}1}=5@#u7lCiz@;wY`UqKt^8G^a=48V82O_gh}yS--h1Ff%G%`Y=4oWCV&K z>v4*}<@pO8vTX0WPFucuzE-@<@6=g-%=mg_yK|**%?HBqCGPT^1?PD72;wmp5zKQO z3ygOe4rpBmyn + + Applet HTML Page + + + + + + +


Applet HTML Page

+ +

+ + + +

+ +
Generated by NetBeans IDE + + diff --git a/java/SinusDiff/manifest.mf b/java/SinusDiff/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/java/SinusDiff/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/java/SinusDiff/nbproject/build-impl.xml b/java/SinusDiff/nbproject/build-impl.xml new file mode 100644 index 0000000..e176802 --- /dev/null +++ b/java/SinusDiff/nbproject/build-impl.xml @@ -0,0 +1,805 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/java/SinusDiff/nbproject/genfiles.properties b/java/SinusDiff/nbproject/genfiles.properties new file mode 100644 index 0000000..e332e71 --- /dev/null +++ b/java/SinusDiff/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a1f39a06 +build.xml.script.CRC32=ce5cf40d +build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45 +# 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=a1f39a06 +nbproject/build-impl.xml.script.CRC32=16412c3d +nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45 diff --git a/java/SinusDiff/nbproject/private/private.properties b/java/SinusDiff/nbproject/private/private.properties new file mode 100644 index 0000000..9df8488 --- /dev/null +++ b/java/SinusDiff/nbproject/private/private.properties @@ -0,0 +1,2 @@ +jaxbwiz.endorsed.dirs=/usr/share/netbeans/ide12/modules/ext/jaxb/api +user.properties.file=/home/harvie/.netbeans/6.8/build.properties diff --git a/java/SinusDiff/nbproject/private/private.xml b/java/SinusDiff/nbproject/private/private.xml new file mode 100644 index 0000000..c1f155a --- /dev/null +++ b/java/SinusDiff/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/java/SinusDiff/nbproject/project.properties b/java/SinusDiff/nbproject/project.properties new file mode 100644 index 0000000..7154f85 --- /dev/null +++ b/java/SinusDiff/nbproject/project.properties @@ -0,0 +1,63 @@ +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} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/SinusDiff.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.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.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= +jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api" +main.class=SinusDiff.SinusDiff +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +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 +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs=-Djava.security.policy=applet.policy +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/java/SinusDiff/nbproject/project.xml b/java/SinusDiff/nbproject/project.xml new file mode 100644 index 0000000..cec38ba --- /dev/null +++ b/java/SinusDiff/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SinusDiff + + + + + + + + + diff --git a/java/SinusDiff/src/SinusDiff/SinusDiff.html b/java/SinusDiff/src/SinusDiff/SinusDiff.html new file mode 100644 index 0000000..f34c0ef --- /dev/null +++ b/java/SinusDiff/src/SinusDiff/SinusDiff.html @@ -0,0 +1,36 @@ + + + Applet HTML Page + + + + + + +


Applet HTML Page

+ +

+ + + +

+ +
Generated by NetBeans IDE + + diff --git a/java/SinusDiff/src/SinusDiff/SinusDiff.java b/java/SinusDiff/src/SinusDiff/SinusDiff.java new file mode 100644 index 0000000..65adc8a --- /dev/null +++ b/java/SinusDiff/src/SinusDiff/SinusDiff.java @@ -0,0 +1,134 @@ +package SinusDiff; + +import static java.lang.Math.*; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.*; +import java.awt.*; + +/** + * This example shows how to create GUI application which can be run both + * as HTML embeded web applet and as standalone application + * @author harvie + */ +class AppGui extends JPanel implements Runnable { + + double offA=0,offB=0, + speedA=50,speedB=-55, + freqA=25,freqB=35; + + @Override + public void paint(Graphics g) { + /* + Graphics2D g2D = (Graphics2D) g; // cast to 2D + g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_ON); + */ + + g.setColor(Color.BLACK); + g.fillRect(0, 0, getWidth(), getHeight()); + g.setColor(Color.GREEN); + //g.setXORMode(Color.GREEN); + + int mid = round(getHeight()/2); + int y1,y2; + for(int x = 0;x<=getWidth();x++) { + y1=(int)round(mid+mid*sin((double)(x+offA)/freqA)); + y2=(int)round(mid+mid*sin((double)(x+offB)/freqB)); + g.drawLine(x,y1,x,y2); + } + } + + int fps = 24; + + synchronized public void run() { + System.out.println("FPS::: "+fps); + while(true) { + try { + Thread.sleep(round(1000 / fps)); + } catch (InterruptedException ex) { + Logger.getLogger(AppGui.class.getName()).log(Level.SEVERE, null, ex); + } + offA += round(speedA/fps); + offB += round(speedB/fps); + this.repaint(); + } + } + + Thread t = null; + + AppGui(int fps) { + this.fps = fps; + this.setDoubleBuffered(true); + + t = new Thread(this); + t.start(); + } + + AppGui() { + this(20); + } + + AppGui(String fps) { + this(new Integer(fps)!=null?(int)new Integer(fps):20); + System.out.println("Setting FPS from string: "+fps); + } + + synchronized public void start() throws InterruptedException { + notifyAll(); + } + + public void stop() throws InterruptedException { + t.wait(); + } + + public void destroy() { + this.setVisible(false); + t.interrupt(); + } + +} + +public class SinusDiff extends JApplet { + + static AppGui appGui = null; + + @Override + public void init() { + appGui = new AppGui(getParameter("fps")); + getContentPane().add(appGui); + } + + public static void main(String[] args) { + JFrame f = new JFrame("Applet window"); + f.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + f.setSize(640, 480); + appGui = new AppGui(args.length > 0?args[0]:"20"); + f.getContentPane().add(appGui); + f.setVisible(true); + } + + // TODO overwrite start(), stop() and destroy() methods + @Override + public void start() { + try { + appGui.start(); + } catch (InterruptedException ex) { + Logger.getLogger(SinusDiff.class.getName()).log(Level.SEVERE, null, ex); + } + } + + @Override + public void stop() { + try { + appGui.stop(); + } catch (InterruptedException ex) { + Logger.getLogger(SinusDiff.class.getName()).log(Level.SEVERE, null, ex); + } + } + + @Override + public void destroy() { + appGui.destroy(); + } +} -- 2.30.2