From 986aa47cecece38ad8d56b75fe6aff52d40ce69e Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Wed, 23 Aug 2023 13:36:34 -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 zcmaiz?@!Y}7{|Z2jdiP)Ra6j_4d&F*A!Xvb5u!{CCIes0@YY5hPoP_=qRC~<0+nLc&?MCsbO7% zrJ==OPPpH2g0XZxIo#vE&#>0>xwHMr<-TxE0vQV##P(jsq{C2*M_$y}VpyGNOq?!x zhJmkacRcCEy9{reHyO{|&z`(~%uwhC1Hn+~c~TsWKRY7)$Q_?F3%!7XKIWmP)>CCc zMap2jmr{gXpGT3PWqsyJY1oan3Vg)nK!NMc-YK8(lP`AU3Mp()o{eMsFc?Q-eKNyFuc;~5h(nGL=^LoI+50y6hmS6)tK}u z-&7r|%>rd^8A;jk`Cm07xzi3nL;x9sB%-_Ym&;UWPL;K0)>>MC;Ga2;Tc-# zidMn{EQ6VEi1u(w+a@1HD_gB!n7cqR#bpCC$efI(r~)3*Du>5dNn{l@k_D>D8t&0d KCu@x){r&=ugBXT~8B16g@*rx2&st6$+?O5V5p{1wlcJ3bY`Yf+P?U;)9u%p{!YU>+Tlu)i?ix zf5Mm6NMd~UM;Y&ID_dgYKHNKZ=6;-e?#%xB{rv}kMZ8iG!;FGi6&+IRk=4(1Kwo6_ z(@%e)B8<5x=2bkzf)tBVJdy#A6)dUf#R##Ieo|w&e_L;p}SyMVz+u$6wU!JnzYkbuuI%Lt=!_`mo5p5ItVgKTi=(Gj@6BelBjrwZMh1b5d&x3uowoDZ+ry0 z$*nTMbf~6}Gt8Yb_1xd)n3C<=Ri`924M|x~3k9>XYYl^lGmN!ks|7QW{gc!#0u(qyLW}hbA^& zshCEIOXBpkU`@G~ixrU87?^u%f1sP=i1$_DdYg8sO7qJn+g_c3n{3hQ9t5(H1^{8)1xy7wxQ#gK5#N>2|PccsKGUh+!5a`AsPI8EBoiroenW}?*r9}sZ zNk;t5UX0LMYdGLG?vTZB7o+4QgTFwb{{paliH@T>LOYiTA7x_bj6tcRYd77e)^H;| zQ-hYS;bx|WTbWCAAEh#N^wiKB)SEz*@(hw3B51=@V+0daaf)iDsNNE-B$ia8UK0yd z#uyTWDT+C2ae{EgN#DaHLby-a7akxMZQi?406csw>Sz`Qg&@xgO+*2tqN;DGwv8kOf#(BoWij5A7C=Iah41u*Q1QeoEC^M<#G_djV?v3 zJJZl&+N(lTb};>^EU8P{oijDcV(~ID`WMPe{>-#O>vtmKROPe}uZ13}zKtChb9m~a z0mnrEmtpy)u3g;4J=)$GyX)^Uc!p8#iD6|5TW*SBV+N9;8ki+_cpQtI4q3a6O*(!y z80ui2XXMj4tRmb7+RyX`xDj|+?wFZ j!b~HSG)7riCa;1OtQPhm9+9=^Z(PR$jU39Zk)`Vo<8j!c literal 0 HcmV?d00001 diff --git a/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BouncingBall.class b/Semester 3/Assignments/lab3_CalebFontenot/build/classes/lab3_calebfontenot/BouncingBall.class new file mode 100644 index 0000000000000000000000000000000000000000..6f034d16b8b436692577a309a9faf26cb0de8f49 GIT binary patch literal 2598 zcmai0>sJ(I82`-zJIgSL3Yb8KCh9`w;w8&4FYHR72q*@kl?}VEFfz<+GqVJCvHR7J zom1!7>1$uBBT#v)?|tw8==7;i)$f@dU@<(x+2?tm_kHfS-QWNDhO{fW3?E^Wg#a-%auA@#mhQg(ebK*Yj{nE zWuO_8I`Re@Q82I-N(8UVX-dGf09(KfQ8APJ?a#6gLOG&(R)8xUUh?GME00@I)bY9o zbHH_#pLMJtP=SV|Zx!qk4_Zz`eb#e>&~n2u%PA?|&GWOMAyMEVQQ#?=xBa}sr?$Zx z)|_>HJ`?1Xt1`i~RaBX5^w^`J)^hDxE3`egf^+pQbIG1nj_oRPCXd^$9iGromF^tV zP@VM()ZQ@2*P+tvr1CFWlVWe{pqICtG0V4wjxVdjX`8O^8g#75!`Jw(Ca-&Ls9Z11 z^m-*XZ@W{ymgCS)YSx=ma%PmHp_QLGZxvUx6djA9)fBB#Kuh(uoA;F!sL`TQ1=0mo zK}W?JW*U7fR3pAuRDMX|bh>jTA(P5-gG@1g%H+Hf9bVz2Cx(^Jt03s;?(Wvmk$$A_ zl9t3gd5ux8m<7V{BacN`Qy z`X8b!YFuG>SHOEF=k*yA@8bg#AL1huALA1fCnZIn%H3xIK9`3t1e}tGGw9Q>eO(sV zA6_ZUj94x+pG@a+IVs9|o}y*DVJ7Q2p3h$Dy*NBRq@i`CDaun)!NW$-0~NBE?8qJI zjrc}HV~<#>n^IwR+I9-Q;y~?L>$SY+I4Uo57G#De1Le=jbPU=-Nd3Fw7#_~Vsj~`f z@#eDqjAOY|)N_L>dpfUZXo@wILfgsYN^JRPqLZ`qS_ZErom*}Dbv(2_vKrI+mz7A> zoMOJt2<*4qf}{MNt1EA7y~F;9N*bl1J-snU)Ikx4&O}}0U`FeN3r$j7rmN{HGg;4z z>;gAfmg^zpzDWf*6q*;CVeHH4cED*tjNF@as&wVm9oIyTF!LBrFe z5~$*bLlvDlR}toDMVQkSVa`v4*_p&C%5r20pCk1bOrC&mx|WgXYC_c_YRX72qf}SJ zB5DN~UH4Eo(RCL(KPj>tsb(x8kr)P%eq;wz}3j zhQyT!?RmW-6M1Dwq z*9yK@3jUzF0sfRYTcNIT)g?(sxpTc(-M$CZZDPr`ltX1d?e)GxHJdXsQOQ`>33l*B@;1wU3uTJUEV(Tgyh1LR#TZ8%5*d~RVn1a5ss`e6!SC2 z6wVkD4X?`?7MqUXuZDv*_utxWmn`X~M@i3Y-%ZNx0r}dcu}NpHiKK z2+Ora&wAay;2l|=hK6Csp)mho`c+g`jr1EWZ|HaUk)vwJ{6C0YRTTB}P;^``a76Ev z%f8pu@YKXEEEBh2npnV|hO&ugs8BbLx$An_cb@Ndw>0dVc#angt2edB#4=Xs%b4lI z$dwsViWDuMVQmT?t)F3gCNNDXkhU+QLm)$sTP?MQGmPieBqQltp90AT3~_Hrfy<-0 zIG**!cZ6(7pW6fK@lvRF+RUJRP)@F(xY5){6;Tv*nbILk|BwzE5m+jv`b3?xLGFT;%b;7NUag}RavGfzkD`*p3RGAs7yhbHRuhM@H_rv=J S9?(63O-j5J>SiP&JpKUG=N4B0 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 zcma)6+foxj5IqAS8<+LMMG-{>1xZM774RA_U;shGMS~#vU`;k-SY2kR-3iKP`4UvB zEFXOGqbz$i;S$9vlB%BBo}SZZPWQ~O-`~Ci7{exz~y;?i+Xz9}j*I01zMd$D@gf<9L|BBNOA8(B`o=ITL3wX<*90G=nuO zr3i8!4?__$#P7S(RSy}Olc{BfSk5mAhLd?$iuuZVQ3Ol8=#i&A?>pRE=7Fof>&}>3 za|vTG@A2a3TUr;zcfM3Y`pV90S5CX8>#i(AOQ?9D7`l@A_k5GT`(%@&EbM}|Sxvy& z2;6lZY(*Z1&cot}Y*9&u3ww)>kivE-PvCp@#xRd>`4y#8Iv*Cf z6cH^Aa4=g0SkPAEtaF#rok_llkZh03GVKpsS&lfzcu*!8Iu2Q8FbjSqaKyB$RqXm# zm1|lE3+K_paDG>mL(ap{R^VH`gEPYO{N5Em@JfRgo?wRbKa%|YH*}U+3s3Qkv};K9 zwq~oLf6icpLM@3;RMgY84*I7SL&+mHqi(iVf?JRij!s0`_nJ~{3aRWVZD+VF zc_N7F+*%eYx8{1KKv4KVGPT=Sj_-LQLJ94KVkm-5eM$0esHl7T>WBJ&5cM-JmHs-@ zLh(I8W>c>j&g~HkqsCa|L_lRHC-oWjYO{Zl7!q11SLv41)2Lz%x9&iHN7p`F^FPvK z;PHxd*3d@}MtAh0G=sVlJ!CJ?w@o9Xv1Mo*>@!W8aFJ|0a(3Vn&8=DhdI2&_d(<4w_cC(L9%Fk5$o<*+G1j@Qf-FJ2*xw=KOFKt(mW|ny|8i8?i5yax#SrF@j+lGuamD|p`k literal 0 HcmV?d00001 diff --git a/Semester 3/Assignments/lab3_CalebFontenot/manifest.mf b/Semester 3/Assignments/lab3_CalebFontenot/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Semester 3/Assignments/lab3_CalebFontenot/nbproject/build-impl.xml b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/build-impl.xml new file mode 100644 index 0000000..d5e587a --- /dev/null +++ b/Semester 3/Assignments/lab3_CalebFontenot/nbproject/build-impl.xml @@ -0,0 +1,1800 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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); + } + +}