From 8803621f8ad1a464671778ffd1f161265531f6e1 Mon Sep 17 00:00:00 2001 From: praanggi09 Date: Wed, 17 May 2017 23:16:13 +0700 Subject: [PATCH] Anggi Pratama Nasution_1301154259_IF3907 done --- build.xml | 73 + build/classes/.netbeans_automatic_build | 0 build/classes/.netbeans_update_resources | 0 .../Application$ThreadPlayer.class | Bin 0 -> 1477 bytes build/classes/musicplayer/Application.class | Bin 0 -> 1930 bytes build/classes/musicplayer/Controller.class | Bin 0 -> 2783 bytes build/classes/musicplayer/Driver.class | Bin 0 -> 471 bytes build/classes/musicplayer/PlayerGui$1.class | Bin 0 -> 1035 bytes build/classes/musicplayer/PlayerGui$2.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui$3.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui$4.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui$5.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui$6.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui$7.class | Bin 0 -> 770 bytes build/classes/musicplayer/PlayerGui.class | Bin 0 -> 7562 bytes build/classes/musicplayer/PlayerGui.form | 165 ++ manifest.mf | 3 + nbproject/build-impl.xml | 1420 +++++++++++++++++ nbproject/genfiles.properties | 8 + nbproject/private/private.properties | 2 + nbproject/private/private.xml | 4 + nbproject/project.properties | 75 + nbproject/project.xml | 15 + src/musicplayer/Application.java | 83 + src/musicplayer/Controller.java | 77 + src/musicplayer/Driver.java | 16 + src/musicplayer/PlayerGui.form | 165 ++ src/musicplayer/PlayerGui.java | 237 +++ 28 files changed, 2343 insertions(+) create mode 100644 build.xml create mode 100644 build/classes/.netbeans_automatic_build create mode 100644 build/classes/.netbeans_update_resources create mode 100644 build/classes/musicplayer/Application$ThreadPlayer.class create mode 100644 build/classes/musicplayer/Application.class create mode 100644 build/classes/musicplayer/Controller.class create mode 100644 build/classes/musicplayer/Driver.class create mode 100644 build/classes/musicplayer/PlayerGui$1.class create mode 100644 build/classes/musicplayer/PlayerGui$2.class create mode 100644 build/classes/musicplayer/PlayerGui$3.class create mode 100644 build/classes/musicplayer/PlayerGui$4.class create mode 100644 build/classes/musicplayer/PlayerGui$5.class create mode 100644 build/classes/musicplayer/PlayerGui$6.class create mode 100644 build/classes/musicplayer/PlayerGui$7.class create mode 100644 build/classes/musicplayer/PlayerGui.class create mode 100644 build/classes/musicplayer/PlayerGui.form create mode 100644 manifest.mf create mode 100644 nbproject/build-impl.xml create mode 100644 nbproject/genfiles.properties create mode 100644 nbproject/private/private.properties create mode 100644 nbproject/private/private.xml create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml create mode 100644 src/musicplayer/Application.java create mode 100644 src/musicplayer/Controller.java create mode 100644 src/musicplayer/Driver.java create mode 100644 src/musicplayer/PlayerGui.form create mode 100644 src/musicplayer/PlayerGui.java diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..ce9d744 --- /dev/null +++ b/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project MusicPlayer. + + + diff --git a/build/classes/.netbeans_automatic_build b/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/build/classes/.netbeans_update_resources b/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/build/classes/musicplayer/Application$ThreadPlayer.class b/build/classes/musicplayer/Application$ThreadPlayer.class new file mode 100644 index 0000000000000000000000000000000000000000..a64ce34457ddf88b80176702183c39aed8b0bfaf GIT binary patch literal 1477 zcmZ`(T~pIg5Iwg=QbL4UKtM#IRwxB2Abx_M6|@)-L7m|-q!FSa$%ItVKjbqrLT6+~ z-~9{z7sqqcs%2^?Gr4<;FsIeuf5rvMoJulE6xaLPY6c~!5pL~C}@YXHVyoI$mC}Gi#vzMI~7&LY(dyZ9)KMVrb zvCPQvJqcQHJSVy*FqLbGYUVKhTA;1ymu-P=!}09Z%I=mOzBIR7dNPJ@neJ;dbmYG7 zY?EXJw3j=fZI){sxh;8~9Tr`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GNt_Y IX4*K^8)R>5IsgCw literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/Controller.class b/build/classes/musicplayer/Controller.class new file mode 100644 index 0000000000000000000000000000000000000000..be66dbb7e2f24c031768ceed53bd07c66590e4f6 GIT binary patch literal 2783 zcma)8SyL2O6#nio&@i+jAgkhniZduqjA)`LhSh+>K*W%sW@&~7T6?<3=^jAMY7&!} z#4KiU$!-$kBUL(Dp_0mT9#WP3fxP7h_Vh?KF#7ZuN+>v z3Nj%?Fd4!WrWKq~a8|)Nfjljh5~ztKGmeo+nc5jW9c@dcOe3MWhHbS71SbuBN}y^H zWI!ShWefro>^CgKZ6#ab$PnQ>>``5yBxYE8Jd+&J(?_)tlO$y^JE56FTH4^fFATa9 zh9gkD$a;ruxoO)p^)#6;(GncVfSw++(@A|)V0}1tQk&GG+LRmBCw0q>wn<1AuUljc zDb1Z=j}m8U)_8Q#O&iuY*$a#%1Zw5Ubkvz5VYIi~F!hcJ+jgYKf-%E%^|ZjwMJST$ z2@e!yg}9c~yQW>;awt3!kP4YEO6zVWZ4GIrfann@baYa4Ic`BosK^PaYdWE){457F zI$Y}=E`Kjdv}0$|37N@-d-ac;B=h8W#h|MtPW5RiKeM4hiRMTti3=&+!MZATp_z($ zpR%in;sFXa_jtbKDt6*Q70=;$6))gL6))js73cAaf>%|%h6^fQ=iv>!Nrh!^%jH=h zntSv=l1sVm8`!mhFGP%4wU7d@w8Xz;Y8PMZqKdchwu*OfNyWQ(Pr>^tKEP!aAL1hw zA9HY@;EIZ?xTfMdZ$Cw|iqClaIpe-y+?Ti@02N;`;A;ll;MF&rxbg+>^Ho&wEiNng zPQ^`pFHo7AyoK~Hirg!nK%F$VwC*v(A$BnlLyqna8IB?QC>TD*952>JM;8$F_vwi_ zglr3STzC7p(OF964M&dW&~d&)RPx3M38jmKmqBp^waZ2=yO3%{zB~pBtPV$V{LC|! zA?>c!HcGuwpr6iYCe^jVzldyF9~wC(5YCnRq24F16%;?Sg#Kk4Z}n8?Sh$pG9!w@^ zr88kq^`~^J)6h(NoEju2tsQnUWn1!zp}sER`}wWS&Zw?)w=`_|K2T4pGDH5}(`g%V zY%}BP1M-DhoSFFw6jE*d>@UiP58&i;Eh%}O6oSjnbHed8={cr2i_?12p45F=Fx(~(_2_gr?am>OR>0oIyAX}D2n^pv-W>#KnNQ1tJ5U;LLkVV4$a7;B zMRL9k5{0rTo{=W^(6|l?jnxREhCbZ2^tT4}Sc^u~;bE-DLv*To&S<}vb^`m*;sp|z zCT-Fehqq;+_HAb;S**xnSGIa^I7q`?RO|~j)lf8* zO`cNKp8SgZYuMD3MRgW6`wB=LtSQK%c5&o4@w@M4jdZiwQ(xQ4__{3WmcnoN@O2Wt zEf=1}dS7e9g4V_?>Te?HYi*KRl??OHO4()!i1~mm60pVtG%PjK;G?!mRJDf+FGZEa zSwc5&yoYTwl-hjJB3kJePae2Lm#~S(dipuE1?6a<0&OKGM5qjn=p@ec5NnPQYmO6V z4C0GPj5$keIZvpI#Fr~%?AyUZ|*(ydCx=BXl@rlK&LwHo)zngB=OYA>PH!nxg-!K$31$OM-u%*6T NL8O>KF**vM?_Xju!K(lO literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/Driver.class b/build/classes/musicplayer/Driver.class new file mode 100644 index 0000000000000000000000000000000000000000..e106b4148b9b42163e5c39e7c483fd0da950e525 GIT binary patch literal 471 zcmZuuO-sW-5Ph4bO`1kqYmN2jt$HvQZxul*o`N1K1@W|rOWcwV*(L>lmZyS(KfoU) z&L%=CxQCgYH}l@i&VGHre*!qik%Kl4EO-tK?GG)C89Em-lf@-NYjUz+FlYIbVCV-j z6Srj=3U$xJgpgs7M?6_@C3XA@n#HqRF^qz=T*>Gq;jcpZ*GjI1nvzz^Wyau59)l%c zb3fr(?9U4&vv^wd;wmQg{y%937BP(f=+5%2P86JkwoVbYM}_ z?TH#Dy<82tcNw_vLP literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui$1.class b/build/classes/musicplayer/PlayerGui$1.class new file mode 100644 index 0000000000000000000000000000000000000000..3bc94b96283d670ddf2e7d86a4810d29d7c6e6cb GIT binary patch literal 1035 zcmZ`%ZBNrs6n-w0wHsAN6%i0cow^sHI6J;G0162bx15XVs8(2|y zc7eaTj#V9N0(z3hGVCM*H{Lc++;^@WxM9b3GVhi^EsV*?v?Di7rod)hlKek_I z;zduYkZl>tbVp#md__#8o&-?;679;+F7ZgA+vQrQEirpgMK zjWG1%y}(TppXS_X{L(7B&^vzW$WH_uFIO5&rM(~cT|Z2BQ-PUsqcUnfAq51(hwfjs zPkb*WY~GQb&`okvl9AXHnI-ay0TYGLr+T-S0)+(%u6!|Fh>sOF)i z@l3-4-y1a#6Io2HT04WN{=it(_=WM-xTQHQ&6;pp6IRY?6YP~A^(+WW4OtG zAxm9G9xIrkeX9>ed7Bnc%Sv*+n8W;_V4YI%E?51A{P|~UeXLyOwKE*EA2GlYiaB~z zyIYJ_Bk3x8VeQLMdi|d^^vgDMEaEOiahE{%20--zP_DZ09fe_>UY65r%AM$nLhppJf8k z_}~xlM;Xqn4f;^nWarMkIdks0AHVXp^vgoihZ-;u9kk{JiVozYHbq!{{D^Tm$z7nX%+Ncl1K~H6$WiMr9 zCbo%8yE4YBqMoN zL~5i=5$%_d19#tbnyPA42rSskKqiUGImS&6^2K#ix~UE8U953OroeGSG#aitu1epF?c?K=mJ0P(I(GfLH&~ f`B!v4?qilTRm_pR!gLF?H7@od>Sa1^BQ3v6DAcjY literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui$3.class b/build/classes/musicplayer/PlayerGui$3.class new file mode 100644 index 0000000000000000000000000000000000000000..fdd6c5ffaa062974529e91be5d3313f90be69a7c GIT binary patch literal 770 zcmaJ7#*_05iB7;0{(jta-TSVO`)_d8&(O zS70d_jtZTgXY!NERo@%4Z1A&$HC77+AK%;91N}!o&quz{$eU-nL{fv?M z#HKRq$y_^s5^T7%0^uuTRNl>GQ7F30)A^%4s%Xlz)YcrU{DaMhY9O%QPR`_5#`0qs ztFba=d{{w_+}Gu+^L`!5P}Xwf6SViQE%#QcQoaKhzxzCdh$NBtjFP(6Q60p0)T f{0llC3%Es^Iu=P@W4a~U1{Zr7%_<$Yk(S>dH)65o literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui$4.class b/build/classes/musicplayer/PlayerGui$4.class new file mode 100644 index 0000000000000000000000000000000000000000..efd7cf758ead8a16a360b4a88ed9ae176e2a06f3 GIT binary patch literal 770 zcmaJ}jSHQgW%7&4V4F%TQ$*G*kSbi>J zHBqLF_bSM~yYDznbu}pkRDfTWE9qR+T4q=wTzo zV>}7r;bsWm-JT+1|7Nx?>I$?fm67H5)Co|{C^j?S!M zjqF&x?dl93<+t_n5HBm$!jSC@+1=LovrIG^ zAN&FSDC3#6K_3d6?A*CGXU;wMYP9``Eqa;*0Wd9IBv4+K`*mteO00*$U6DuHIAjXEBW1}c9q2N@%a ziA`nJm$`QSG}v%y1;SUxsJxrWqEK{KX7fjTRMC`asjca${DaL$YACSLPR`^+#`0qs ztBEpYd{{w_+*Qz|VLl2uF z9^hdJ57$HZ?zV-9{hQgoXiuP3sm!D~iQf#)R7y$fGleI*C>8r5ur!m5^4ui4c64qH zYh=gjZC7U?(^M5j^kkQVe0JHCu4=<}ADi5fIdI$%t(L2ft5f6eBVhCfZwK^UBdP$se# literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui$6.class b/build/classes/musicplayer/PlayerGui$6.class new file mode 100644 index 0000000000000000000000000000000000000000..62a0d641da864711d451ef3075e8caed9ce09420 GIT binary patch literal 770 zcmaJMBxj1MZvp}X%nO?5RX1=g;D2?THKI8W6x?ZnPs6#m3CGh1kL{8E)CcIaU< z!~;AG;o*7+-`yS|V*h5gFX{@kDwUZu$MNgIsY)qneWvh47o}o91QutKQJ$Mb&yLQl zVU6rqz3u7@WSXj?h<0~4$nIrRx~dIZeQa_^=D=}7v|6q@u1<}=kATq|yzSF>k)X5v z4WjcMwJ#MW6kfIrH3W^K@i!X`U+?#-EV&;9uI`^QfJkMYn)1Iqzsa3{cRtaw=UaM#0{z?Je? z7txl$Vlo^RIz7$gXO+hXm3cAJJA^#bMwhz+%k2v=8$E$W*AA3GGtox99u4~{e=GYL zBXfyOW!96qcK#&TaA^g?m&T~Po5`Y3beE>{N841%j+<%sO`6$4o1<5%JhlT5 z>mlypeh3d&L-_9Y01^8)wSCdHK&w)jNplpx>7S^Sl2)e*Pjpc#_CsKPDjDUuNp$V- z)Ed^vj@8?)&OoNADvIdI76AOhK z+5864`HtF`3KR0=E1vIgo#(<|6lT$)M|{O5h`52d3D@3)%kO-J*gQl1A5~C2e@_7) i{-g8H>3rP8Ez;C6Px2bmEz&l)*h^?u>9~!w{QdxF>as=v literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui.class b/build/classes/musicplayer/PlayerGui.class new file mode 100644 index 0000000000000000000000000000000000000000..ea084abb3081dc032029a9d7093eed680d0900b9 GIT binary patch literal 7562 zcmb7J33yyp75?wE%_Ni8Hkqbrw$d$a)1+;huC(cvq-jY>Lut|-ftSf^I_+d8%)B%y z$iA-%qOvF=A}Wh4(kT+9YDE+j6jV?^5Lt@|ilVp_|MT8UGBbJ8G|88H&b{~C|DJp9 zIp^N{^5oG+9|N#Zt@7bh_?8rROL31B_eyb}6yNsYblfl8171AnLl*AOV&x$(zT<;t zS047_fDdEsO5BTsKKSj*BVK&hhw*mhQ5o1P#rLH6z7&s1amb4w$P7R9;zvGA!eK%F zvCQ>&CVnEwPYB{qz4)0AGo;&(Co}PsAU~0bpL_8OA7)GYcxivyi)Vb8hr^lpr5C^Q zVS%vEdhwhOi-rBQ7r*ggDGqz_TbcKHAFA&5>Rw1#llh}MPlSj>niWVD*$nzlBD@r`@*eR@x2 ztUDNPuUuc-Wtx$2wL%sJ))*nfG!(q#n~WaQ<~D}({SFs3_Ssys8R;aqr%`V;LRAWR z$*5K{LA5>2foLQY+Ng&ON);wc4fM(Up~K8lg5>1=|z~l83f%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dP$$Ey^9?nD>bH0kJ>CIqD|jyJri+}rxX`^DsYKs2`=?4BVUKhJnM0}=Tuzb*@i1UXW%N&E?n*Dz%?Ed z*Lu3ycOI_uTu7Wth{WzOB;v8Cg4C$x&ckWK87|x?4 zANZ_G+F4{}4}c4l3@7O(gI%DpCCyl{tlMdZVz`jo!55}{C?Gv1#4STW@Porp5Vs8h z!4DThLEJF}1V4Zb1##C95d4rb6vW-fgiyEwS2_@tq_P2{7*7)(Ad|Q&hb$O7`HymT zMd2#f!3C*<54#S&+I4VA>fk3_2VdhlxF~h-Q?7%rbsb!oI`|pa!PmJCE>0c%oa^Av z;IodkYiM4cmOOTOPBEo#9f$)t`N8Cpi5DyoI~KC~V<8LIGx%h)K8G7!;PME!EfwxX z!o8FR?(+;ff%_tEa^SY{5 zmDhyV5|%#E(fVdfR*fg>Ex6U0xT*`4Rr3>D`0{SM}Sk3SYvPp>i^r)W71WvdmE>qrBoEG6wMNoHQl@ zCj+-zS0Bk&UzMChoIBicMhzF|YwkEBhl_KkJI;vV;(Xm5$1_}aU3Sh;@K literal 0 HcmV?d00001 diff --git a/build/classes/musicplayer/PlayerGui.form b/build/classes/musicplayer/PlayerGui.form new file mode 100644 index 0000000..200debd --- /dev/null +++ b/build/classes/musicplayer/PlayerGui.form @@ -0,0 +1,165 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/manifest.mf b/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..0ae0aee --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..237ce34 --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6ea9cd52 +build.xml.script.CRC32=1fe043b5 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=6ea9cd52 +nbproject/build-impl.xml.script.CRC32=dad7de4f +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties new file mode 100644 index 0000000..09a86e2 --- /dev/null +++ b/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\praanggi\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..e35469f --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,75 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/MusicPlayer.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${libs.jLayer.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=musicplayer.Driver +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..858374d --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + MusicPlayer + + + + + + + + + diff --git a/src/musicplayer/Application.java b/src/musicplayer/Application.java new file mode 100644 index 0000000..53235c8 --- /dev/null +++ b/src/musicplayer/Application.java @@ -0,0 +1,83 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package musicplayer; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import javazoom.jl.decoder.JavaLayerException; +import javazoom.jl.player.Player; + +/** + * + * @author praanggi + */ +public class Application { + private ArrayList musicList; + private ThreadPlayer thread; + private int nowPlaying ; + + public Application() { + musicList = new ArrayList (); + } + + public void addMusic(String path){ + musicList.add(path); + } + public String [] getMusicList(){ + return (String[]) musicList.toArray(new String[0]); + } + public String getNowPlayed(){ + return musicList.get(nowPlaying); + } + public void removeMusic(int i){ + musicList.remove(i); + } + public void play (int i){ + nowPlaying = i; + String filepath = musicList.get(i); + thread = new ThreadPlayer(filepath); + thread.start(); + } + public void stop(){ + if (thread != null){ + thread.stop(); + } + } + public void next(){ + if (nowPlaying < musicList.size() - 1){ + stop(); + play(nowPlaying + 1); + } + } + public void prev(){ + if (nowPlaying < musicList.size() + 1){ + stop(); + play(nowPlaying - 1); + } + } + + public class ThreadPlayer extends Thread { + private String filepath; + private Player player; + + public ThreadPlayer (String filepath) { + this.filepath = filepath; + } + + public void run (){ + try { + FileInputStream fis = new FileInputStream(filepath); + player = new Player(fis); + player.play(); + } catch (FileNotFoundException exc) { + throw new IllegalStateException ("File "+ filepath + " not Found "); + } catch (JavaLayerException exc) { + throw new IllegalStateException("ERROR while playing file "); + } + } + } +} diff --git a/src/musicplayer/Controller.java b/src/musicplayer/Controller.java new file mode 100644 index 0000000..6e926c0 --- /dev/null +++ b/src/musicplayer/Controller.java @@ -0,0 +1,77 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package musicplayer; + +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.filechooser.FileNameExtensionFilter; + + + +/** + * + * @author praanggi + */ +public class Controller implements ActionListener{ + private Application app; + private PlayerGui view; + + public Controller() { + app = new Application(); + view = new PlayerGui(); + view.setVisible(true); + view.addListener(this); + view.setListMusic(app.getMusicList()); + + } + + public void actionPerformed(ActionEvent ae){ + Object source = ae.getSource(); + + try { + if (source.equals(view.getBtnAdd())){ + JFileChooser fc = new JFileChooser(); + FileNameExtensionFilter filter + = new FileNameExtensionFilter("MP3 Files", "mp3", "mp3"); + fc.setFileFilter(filter); + int returnVal = fc.showOpenDialog(view); + + if (returnVal == JFileChooser.APPROVE_OPTION){ + String path = fc.getSelectedFile().getAbsolutePath(); + app.addMusic(path); + view.setListMusic(app.getMusicList()); + } + } + else if (source.equals(view.getBtnDelete())){ + int selected = view.getSelectedMusic(); + app.removeMusic(selected); + view.setListMusic(app.getMusicList()); + } + else if (source.equals(view.getBtnPlay())){ + int selected = view.getSelectedMusic(); + app.stop(); + app.play(selected); + view.setTxFieldPlaying(app.getNowPlayed()); + } + else if (source.equals(view.getBtnStop())){ + app.stop(); + view.setTxFieldPlaying(""); + } + else if (source.equals(view.getBtnNext())){ + app.next(); + view.setTxFieldPlaying(app.getNowPlayed()); + } + else if (source.equals(view.getBtnPrev())){ + app.prev(); + view.setTxFieldPlaying(app.getNowPlayed()); + } + } catch (Exception e){ + JOptionPane.showMessageDialog(view, e.getMessage()); + } +} +} diff --git a/src/musicplayer/Driver.java b/src/musicplayer/Driver.java new file mode 100644 index 0000000..88a2465 --- /dev/null +++ b/src/musicplayer/Driver.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package musicplayer; + +/** + * + * @author praanggi + */ +public class Driver { + public static void main(String[] args) { + Controller c = new Controller(); + } +} diff --git a/src/musicplayer/PlayerGui.form b/src/musicplayer/PlayerGui.form new file mode 100644 index 0000000..200debd --- /dev/null +++ b/src/musicplayer/PlayerGui.form @@ -0,0 +1,165 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/musicplayer/PlayerGui.java b/src/musicplayer/PlayerGui.java new file mode 100644 index 0000000..03b862a --- /dev/null +++ b/src/musicplayer/PlayerGui.java @@ -0,0 +1,237 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package musicplayer; + +import java.awt.event.ActionListener; + +/** + * + * @author praanggi + */ +public class PlayerGui extends javax.swing.JFrame { + + /** + * Creates new form GUI + */ + public PlayerGui() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jScrollPane1 = new javax.swing.JScrollPane(); + listMusic = new javax.swing.JList<>(); + jLabel1 = new javax.swing.JLabel(); + txFieldPlaying = new javax.swing.JTextField(); + btnAdd = new javax.swing.JButton(); + btnDelete = new javax.swing.JButton(); + btnPrev = new javax.swing.JButton(); + btnPlay = new javax.swing.JButton(); + btnStop = new javax.swing.JButton(); + btnNext = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + listMusic.setModel(new javax.swing.AbstractListModel() { + String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; + public int getSize() { return strings.length; } + public String getElementAt(int i) { return strings[i]; } + }); + jScrollPane1.setViewportView(listMusic); + + jLabel1.setText("Now Playing"); + + txFieldPlaying.setEditable(false); + txFieldPlaying.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txFieldPlayingActionPerformed(evt); + } + }); + + btnAdd.setText("Add"); + + btnDelete.setText("Delete"); + btnDelete.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnDeleteActionPerformed(evt); + } + }); + + btnPrev.setText("<<"); + btnPrev.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnPrevActionPerformed(evt); + } + }); + + btnPlay.setText("Play"); + btnPlay.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnPlayActionPerformed(evt); + } + }); + + btnStop.setText("Stop"); + btnStop.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnStopActionPerformed(evt); + } + }); + + btnNext.setText(">>"); + btnNext.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnNextActionPerformed(evt); + } + }); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jScrollPane1) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addComponent(btnAdd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGap(18, 18, 18) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txFieldPlaying) + .addGroup(layout.createSequentialGroup() + .addComponent(btnDelete) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnPrev) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnPlay) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnStop) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE) + .addComponent(btnNext))))) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel1) + .addComponent(txFieldPlaying, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(btnAdd) + .addComponent(btnDelete) + .addComponent(btnPrev) + .addComponent(btnPlay) + .addComponent(btnStop) + .addComponent(btnNext)) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + private void txFieldPlayingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txFieldPlayingActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txFieldPlayingActionPerformed + + private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_btnDeleteActionPerformed + + private void btnPrevActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrevActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_btnPrevActionPerformed + + private void btnPlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPlayActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_btnPlayActionPerformed + + private void btnStopActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnStopActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_btnStopActionPerformed + + private void btnNextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNextActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_btnNextActionPerformed + + /** + * @param args the command line arguments + */ + + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btnAdd; + private javax.swing.JButton btnDelete; + private javax.swing.JButton btnNext; + private javax.swing.JButton btnPlay; + private javax.swing.JButton btnPrev; + private javax.swing.JButton btnStop; + private javax.swing.JLabel jLabel1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JList listMusic; + private javax.swing.JTextField txFieldPlaying; + // End of variables declaration//GEN-END:variables + + public Object getBtnAdd(){ + return btnAdd; + } + + public Object getBtnDelete(){ + return btnDelete; + } + + public Object getBtnNext(){ + return btnNext; + } + + public Object getBtnPlay(){ + return btnPlay; + } + + public Object getBtnPrev(){ + return btnPrev; + } + + public Object getBtnStop(){ + return btnStop; + } + + public void setListMusic(String [] musicList){ + listMusic.setListData(musicList); + } + + public void setTxFieldPlaying(String filename){ + txFieldPlaying.setText(filename); + } + + public int getSelectedMusic(){ + if (listMusic.getSelectedIndex() == -1) { + throw new IllegalStateException("Please select any music"); + } + return listMusic.getSelectedIndex(); + } + public void addListener(ActionListener e){ + btnAdd.addActionListener (e); + btnDelete.addActionListener (e); + btnNext.addActionListener (e); + btnPlay.addActionListener (e); + btnPrev.addActionListener (e); + btnStop.addActionListener(e); + } +} +