From 45e5f974af4b7e437ee39f0f0d0b208ff5683a64 Mon Sep 17 00:00:00 2001 From: Chloe Christine Fontenot Date: Sun, 19 Oct 2025 21:31:14 -0500 Subject: [PATCH] BouncingBall --- .../Assignments/lab3_CalebFontenot/build.xml | 53 + .../build/built-jar.properties | 4 + .../lab3_calebfontenot/BallControl$1.class | Bin 0 -> 1151 bytes .../lab3_calebfontenot/BallControl.class | Bin 0 -> 1348 bytes .../lab3_calebfontenot/BouncingBall$1.class | Bin 0 -> 951 bytes .../lab3_calebfontenot/BouncingBall.class | Bin 0 -> 2598 bytes .../Lab3_CalebFontenot$1.class | Bin 0 -> 1157 bytes .../Lab3_CalebFontenot.class | Bin 0 -> 1552 bytes .../lab3_CalebFontenot/manifest.mf | 3 + .../nbproject/build-impl.xml | 1800 +++++++ .../configs/Run_as_WebStart.properties | 2 + .../configs/Run_in_Browser.properties | 2 + .../nbproject/genfiles.properties | 8 + .../lab3_CalebFontenot/nbproject/jfx-impl.xml | 4197 +++++++++++++++++ .../configs/Run_as_WebStart.properties | 2 + .../private/configs/Run_in_Browser.properties | 2 + .../nbproject/private/private.properties | 4 + .../nbproject/project.properties | 120 + .../lab3_CalebFontenot/nbproject/project.xml | 26 + .../src/lab3_calebfontenot/BallControl.java | 57 + .../src/lab3_calebfontenot/BouncingBall.java | 83 + .../Lab3_CalebFontenot.java | 53 + 22 files changed, 6416 insertions(+) create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build.xml create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/built-jar.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl$1.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BouncingBall$1.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BouncingBall.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/Lab3_CalebFontenot$1.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/Lab3_CalebFontenot.class create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/manifest.mf create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/build-impl.xml create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_as_WebStart.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_in_Browser.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/genfiles.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/jfx-impl.xml create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_as_WebStart.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_in_Browser.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/private.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.properties create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.xml create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BallControl.java create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BouncingBall.java create mode 100644 Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/Lab3_CalebFontenot.java diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build.xml b/Semester 3/Assignments/lab3_CalebFontenot/build.xml new file mode 100644 index 0000000..be2040d --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/build.xml @@ -0,0 +1,53 @@ + + Builds, tests, and runs the project lab3_CalebFontenot. + + + diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build/built-jar.properties b/Semester 3/Assignments/lab3_CalebFontenot/build/built-jar.properties new file mode 100644 index 0000000..bd12ca3 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/build/built-jar.properties @@ -0,0 +1,4 @@ +#Wed, 23 Aug 2023 13:31:30 -0500 + + +/home/caleb/ASDV-WebDev/Semester\ 2/lab3_CalebFontenot= diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl$1.class b/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl$1.class new file mode 100644 index 0000000000000000000000000000000000000000..4f6a3175c1e66800765becdda01ab0f049c790ef GIT binary patch literal 1151 zcmX^0Z`VEs1_l!bBTfc(1|<-o%*DXLpu)wV%Am&1pw7j>&Y;20pvlgl#m=D3$RJRb zn4^-EUz(SknV0UAn3KcEpy-p6m}DHEoS2iEl$M`YlA4!aqVI&H#F~+Ttt2C}SjB*m zK>@4c#GD-G{JfH){2Y*4o6Nk-5<5l)7Y#y+vC1RctQp40z~Y>rlFG=y?~|FA>Q|bZ zlv)&$n3R*s$ROmCpPZNzmROVt;zI>lKrUru;PK4MOD%HFNh~f-EoNj;!fF%3*(!!0 zhi4?_rGN}p((uVjEK5wQ&@WC-%}dqK%qu7@(f7?SElzbUOU)~>204p06~ts@kSCy) zkwF}899WA!!VJ#f%=Em(lG377Mg~8yIr=$?dFlH8Nm;4MCDve(viHr=a#U+VFCCK4iT#}fcsvis@!Ewc`0g5qsYz85vHbw^4g2d9| zR0ahGb_NaxMg~p>CIJCZKrk=}2!KL`fq{XUfq{XKfuDhqL4bjQ!I^;xEW)p)y_JDc zOJ^$slh$?y=8X&t3``7y3=9lx42%p63~~%Y3=9ln3``6R4Ezkj45ADmzz;T(k%18u za!>;u7#P8-IJCAfFl}RCL72n^7FS|mXHZ5mjRS5P2ZIEIBm<*>BZC-&6x1|h1}3mB zPA%;N46NH2*bv4cJB$bHNKU9xEDX|M=gTn2f@wJhc?Jds76t_dMFtTD1_mw$Mh13} H`xzJjj)NGL literal 0 HcmV?d00001 diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl.class b/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BallControl.class new file mode 100644 index 0000000000000000000000000000000000000000..23035f5fbc8c26e5ab8eee94eac366c5f6d4f34e GIT binary patch literal 1348 zcmX^0Z`VEs1_l!bFD?cV23>XrJuU_&5UtPV(8&M>Yz|Eazzi-176tPq|~C2#H5^5Mg}3D{N%)(u*9NF5FaYYQj(Eb z%*deNlarWa9G{$+lbV#4pI4HamtUgql$ev_oS#=xl%HeG$iP}$l2}y2$RMuala*MO zm{y@*T#}fcsvis@twA>P6clCVCKgqKMHm@Gu&HBY;7Q6a%}dVAO9vUx$e@VTW+WwG ztCLgnQjtvr@%4j2q%|W0mup3GYC%b6eqJ#H5JX zMVWc&V0W@47Nr+6G6-XlW@O+B&Mz%WPIb!!1(^WIjnE*_1NoYVL5xA1kwG3?Xd$_o zkwFNg8Wct#H$q$r(rd@aAnF8Fr~oot0ctusgFO#}1A`+EgA;=@4}%MXI1hs>$SMVF zRv{ur#Smny8xMm!g9i_TCxZqfgB*Sxj0|#6wq7+6IZ*tauq`e_SsZDZip z*4@UyqrHuRS7#dopU!Ru{zxsI?F<6j7z7daDKT&`FffQQa4<+Ph%-ns$TCPVC^1Mg zs4>VeXfen!m@}w>-J%7t59$^M1`7sx1_cI21`Y-T21N!X1||k^21N#C1{DTo22}eW(1=yyVQhbf?6e9BW1fHk-`6%o00B1{Dp0 zsx`wH8Cab2Q&Jfj_Xa*p(at3Fn=Ovbu7Ns&Wc!G`4&q>Tn*Y{7#N=+`Y28+P$1#9yF zJF3VARSMZjcGipxT*3LJMaijdnIQKIA_uu1$SaHt{H}S)Ir+tzdFj5XB^miC>+ZmWPGB7YOG4L@kFt9N&GB7ZxFz_=lFo;1^F$gdS zF@OLU*fd54Mv#A@W;rl0f>m*7ZDC;C!N80#i3=>Q!NAU-iDViF+%ygbQ3f#vMgd0# zVFq!iX~s~OacXHFU|`wCz=|*q*eEHu%tC317~7hW^Q6hW_})$ zO1PMQNM>$oPG(-JH6sI?O=ezZi5(*Yvxa6EBLj2pPZPJnv|BGSCX2SU!w1nUz(SknV0UA zn3H48$iR`CUzQ4DGcxc7mn0@<`z98^Oex4otYl!1nH6lnT0i8L1q{6Fc>iyvojR)FqANq@-UP! zl=CoDFjTTLRPiuWGt@9L!1QCrHa0o$)JnIa#N1SNhFTtmI)-{i21Np{Rxt#*!vlw5 z;DifO&;TMDc^FI>OnDfZ7@Bz)S{Pb+7}^-xc^K?LLDT^f>jV*9Ac<}e;Q*3wWpHC; zkU$BAoW#of(h~iE#Jp5S1~v^B7Z*^ZpsFcI%*-p%ch1krFJfe1bqewi_hV#`f+Y$_ zE!{LYmiOc>8T~o8JRgLMX7m=462B=mSpDWyOb6|b2M9SW=;+$<4J0`z>__S8f!*|0En4s75b<$FrTKDrRJ6ByMjoM z#JrT8)FSI>m>eSQc&Ao^qZAwr@*3DxfKw1y1$%mGNl;=*D!4dtfdnyx&!Pd2Gv4CV z66ea~oK)xh(!3Hz1{MuZPylnJr8HDm_V5d%+_bn0n-Lh+7L<`F&KlzO&ClW z7#KJh7(rQJ z-pwE!$-jd^WH*Coq}Fx@G3LDt;@cS{g10kBZe@_t+5*Ab7^FoQn6tMr$bdwcwlT

91ZWKdzKV$fme zVbEom!l1`6n?aw!ih%*fh&0{ z1BeC%8T&Q{Wl&gwf^r*!3doDh3?MJ6F>o?4Fc>pPGng=_Gng?rF_<&>F<3K1GuSX> zFxWB_GuScIG1wz{s~+ktI|c>@HU<`HZYgdCMo^Ih^`aRABiM@|tEEtalZ%0gfq}u1 zft|q#$vh6Id5jDW@L)nSLlxv+Ca`-UX1Fr2Gq_;sd)j$!B zZk#8B5Q7(zal&vXfr0~)a`U0ase@7p2t$qIn?8?05W&x1&cMRAjX?%v1tf$aF7{6Ft{^#K=tcG^|NYiXJ7<54HB3T&0eIJmJGf2n{DrC*bz-E(~msw)R z$e^V`q#n&MMg|t={FGEi27aH+yi~u^+@#c^ki?{%R7M6NpZw&+oUp{AOb{O`$O3W} zBLk0TUS4XEb53G$acVImgC=qIsThJ>nUR>60y1A#!zU}TEHSM@Kea41uSDN5xg;|` z&lSYB204rsEX>FtgjxBN=9L7O6s0ES zS~D^TgB*t@%*eoA08*5b$H*WGiFJsNf=h}r^U|#~!x$78I2bq?7#X-27zG4C;mp9m zz|6qFz{|kLz{tSQz`$U~z{J4Bz`($zrM;DbQENK`(?$jc1||jp1_lN;21W)31}O$X z1_lN(h$;pl1`!4j-~yY*$iN5+d8k>AP_sBUF)$0UY-3@ps(D`7^lFi3&jFU=qWrezuA7#J8> V7~~lg7=%IoWME|A0C|9c0RYtJ7FPfO literal 0 HcmV?d00001 diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/Lab3_CalebFontenot.class b/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/Lab3_CalebFontenot.class new file mode 100644 index 0000000000000000000000000000000000000000..325a90e316645e96ac08a4bfb63147ad8d25ff31 GIT binary patch literal 1552 zcmX^0Z`VEs1_l#`2rdRm1|xO`V=e|J1|tpz6A*36&S1vHz{X$>;#jaVSaLCNG8lmf zD{cmB1{-z;TQ-NH0}LR*=8*3Iq8Ydtcp2 zWZ?14%S$bC&PgmTPAz6+V6(~0%Pg^DWMJ0N3}a+qan4UkWn|#@$;?ajE6q(xEec6Y z%1LEp5c0`SPRt2QEXoA&p@J+W8JWe54C+2PiAl!s$%#3sNoo0cC8>G&CHg)fA!m?~ z8&t@ek%6_iB(bQ3kwIL;Co8cmF|9(sxFj(>RX-R+T7w+GQ&5zdn^;r{7GY!%!KRLp zfjOxpkC8zZE}5K~m#UwfpI1_ppQG0mdrBo?I?GcpKc zk!EDz3eGPrN=|jl1cjnFW~k_a0)mG@nn8wSxHEV#GN=<3{3?bZTReFfycoP08DvqcLJt!j1|J4rb_PEl27iVCMg}1i z#o%B8nH9*$z=Px*MRtZD9)@5B4<3dPhEN`cFa{YOhHwU5Mg~=)9LUHZ2el`$pdcqR zIk6-&KTqEg!DeJ&FHS89Nv$YhWDtd>X( z`l)59c_sR;Akrf-FC{0n2prGc>8T~o8JRgLMX7m=45}KM;N*~2p`V$tBjBQH%^yaEBFx6GlK{QEFa^ zwTlbL5Ae7FWg$?iPETcI-~feFW(g?CftcVJL& + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_as_WebStart.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_as_WebStart.properties new file mode 100644 index 0000000..670fff0 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_as_WebStart.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +$label=Run as WebStart diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_in_Browser.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_in_Browser.properties new file mode 100644 index 0000000..f2a5a65 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/configs/Run_in_Browser.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +$label=Run in Browser diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/genfiles.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/genfiles.properties new file mode 100644 index 0000000..4c2636b --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7c5d606e +build.xml.script.CRC32=f4beac8b +build.xml.stylesheet.CRC32=f85dc8f2@1.107.0.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=7c5d606e +nbproject/build-impl.xml.script.CRC32=0370d737 +nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.107.0.48 diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/jfx-impl.xml b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/jfx-impl.xml new file mode 100644 index 0000000..6aeb313 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/jfx-impl.xml @@ -0,0 +1,4197 @@ + + + + + JavaFX-specific Ant calls + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${cssfileslist} + + + + + + + + + + + + + + + + + + + + + + + + self.addMappedName( + (source.indexOf("jfxrt.jar") >= 0) || + (source.indexOf("deploy.jar") >= 0) || + (source.indexOf("javaws.jar") >= 0) || + (source.indexOf("plugin.jar") >= 0) + ? "" : source + ); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_as_WebStart.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_as_WebStart.properties new file mode 100644 index 0000000..86ae865 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_as_WebStart.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=webstart diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_in_Browser.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_in_Browser.properties new file mode 100644 index 0000000..f4e8549 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/configs/Run_in_Browser.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=embedded diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/private.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/private.properties new file mode 100644 index 0000000..8fccc96 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/private/private.properties @@ -0,0 +1,4 @@ +auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true +# No need to modify this property unless customizing JavaFX Ant task infrastructure +endorsed.javafx.ant.classpath=. +user.properties.file=/home/caleb/.netbeans/18/build.properties diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.properties b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.properties new file mode 100644 index 0000000..86cf0a6 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.properties @@ -0,0 +1,120 @@ +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 +application.title=lab3_CalebFontenot +application.vendor=caleb +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 +compile.on.save=true +compile.on.save.unsupported.javafx=true +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/lab3_CalebFontenot.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects +jar.archive.disabled=true +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +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= +javafx.application.implementation.version=1.0 +javafx.binarycss=false +javafx.deploy.allowoffline=true +# If true, application update mode is set to 'background', if false, update mode is set to 'eager' +javafx.deploy.backgroundupdate=false +javafx.deploy.embedJNLP=true +javafx.deploy.includeDT=true +# Set true to prevent creation of temporary copy of deployment artifacts before each run (disables concurrent runs) +javafx.disable.concurrent.runs=false +# Set true to enable multiple concurrent runs of the same WebStart or Run-in-Browser project +javafx.enable.concurrent.external.runs=false +# This is a JavaFX project +javafx.enabled=true +javafx.fallback.class=com.javafx.main.NoJavaFXFallback +# Main class for JavaFX +javafx.main.class=lab3_calebfontenot.Lab3_CalebFontenot +javafx.preloader.class= +# This project does not use Preloader +javafx.preloader.enabled=false +javafx.preloader.jar.filename= +javafx.preloader.jar.path= +javafx.preloader.project.path= +javafx.preloader.type=none +# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs. +javafx.rebase.libs=false +javafx.run.height=600 +javafx.run.width=800 +# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects +jnlp.enabled=false +# Main class for Java launcher +main.class=com.javafx.main.Main +# For improved security specify narrower Codebase manifest attribute to prevent RIAs from being repurposed +manifest.custom.codebase=* +# Specify Permissions manifest attribute to override default (choices: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +platform.active=JDK_1.8 +run.classpath=\ + ${dist.jar}:\ + ${javac.classpath}:\ + ${build.classes.dir} +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.xml b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.xml new file mode 100644 index 0000000..80bac2f --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/project.xml @@ -0,0 +1,26 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + + + + lab3_CalebFontenot + + + + + + + + + + diff --git a/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BallControl.java b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BallControl.java new file mode 100644 index 0000000..5d73d78 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BallControl.java @@ -0,0 +1,57 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package lab3_calebfontenot; + +import javafx.application.Application; +import javafx.event.EventHandler; +import javafx.scene.Scene; +import javafx.scene.input.MouseEvent; +import javafx.stage.Stage; + +/** + * + * @author caleb + */ +public class BallControl extends Application { + + @Override + public void start(Stage primaryStage) throws Exception + { + BouncingBall bouncingBall = new BouncingBall(); + // Create a scene and place it in the stage + Scene scene = new Scene(bouncingBall, 800, 600); + primaryStage.setTitle("Bouncing Ball Control"); + primaryStage.setScene(scene); + primaryStage.show(); + bouncingBall.requestFocus(); + + bouncingBall.setOnMousePressed(new EventHandler() { + @Override + public void handle(MouseEvent event) + { + bouncingBall.pause(); + } + + }); + + bouncingBall.setOnMouseReleased(e -> + { + bouncingBall.play(); + }); + } + // Increase and decrease animation + bouncingBall.setOnKeyPressed(e -> + { + if (e.getCode() == KeyCode.UP) { + bouncingBall.increaseSpeed(); + } else if (e.getCode() == KeyCode.DOWN) { + bouncingBall.decreaseSpeed(); + } + }); + public static void main(String[] args) + { + launch(args); + } +} diff --git a/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BouncingBall.java b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BouncingBall.java new file mode 100644 index 0000000..82f6243 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/BouncingBall.java @@ -0,0 +1,83 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package lab3_calebfontenot; + +import javafx.animation.KeyFrame; +import javafx.animation.Timeline; +import static javafx.application.Application.launch; +import javafx.beans.property.DoubleProperty; +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.scene.layout.Pane; +import javafx.scene.paint.Color; +import javafx.scene.shape.Circle; +import javafx.util.Duration; + +/** + * + * @author caleb + */ +public class BouncingBall extends Pane { + + final double radius = 20; + private double x = radius, y = radius; + private double dx = 1, dy = 1; + private Circle circle = new Circle(x, y, radius); + private Timeline animation; + + public BouncingBall() + { + circle.setFill(Color.BROWN); // Set ball color + getChildren().add(circle); // Place a ball into this pane + + // Create an animation for moving the ball + animation = new Timeline(new KeyFrame(Duration.millis(1), new EventHandler() { + @Override + public void handle(ActionEvent t) + { + moveBall(); + } + }) + ); + animation.setRate(animation.getRate() * 20); + animation.setCycleCount(Timeline.INDEFINITE); + animation.play(); + } + +private void moveBall() { + // Check boundaries + if (x < radius || x > getWidth() - radius) { + dx *= -1; // Change ball move direction + } + if (y < radius || y > getHeight() - radius) { + dy *= -1; // Change ball move direction + } + + // Adjust ball position by 1 or -1 + x += dx; + y += dy; + circle.setCenterX(x); + circle.setCenterY(y); +} +public void play() { + animation.play(); +} + +public void pause() { + animation.pause(); +} + +public void increaseSpeed() { + animation.setRate(animation.getRate() * 1.5); +} + +public void decreaseSpeed() { + animation.setRate(animation.getRate() * 1.5 > 0 ? animation.getRate() / 1.5 : 0); +} + +public DoubleProperty rateProperty() { + return animation.rateProperty(); +} +} diff --git a/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/Lab3_CalebFontenot.java b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/Lab3_CalebFontenot.java new file mode 100644 index 0000000..3a43759 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/src/lab3_calebfontenot/Lab3_CalebFontenot.java @@ -0,0 +1,53 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/javafx/FXMain.java to edit this template + */ +package lab3_calebfontenot; + +import javafx.application.Application; +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.StackPane; +import javafx.stage.Stage; + +/** + * + * @author caleb + */ +public class Lab3_CalebFontenot extends Application { + + @Override + public void start(Stage primaryStage) + { + Button btn = new Button(); + btn.setText("Say 'Hello World'"); + btn.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) + { + System.out.println("Hello World!"); + } + }); + + StackPane root = new StackPane(); + root.getChildren().add(btn); + + Scene scene = new Scene(root, 300, 250); + + primaryStage.setTitle("Hello World!"); + primaryStage.setScene(scene); + primaryStage.show(); + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) + { + launch(args); + } + +}