JGlassPane merupakan framework yang dibuat oleh StripBandunk untuk menampilkan efek-efek dalam glasspane Java Swing . Pada artikel ini Anda akan belajar cara melakukan kompilasi framework JGlassPane agar siap digunakan.
Proses kompilasi framework JGlassPane memerlukan beberapa peralatan development, yaitu :
Sebelum melakukan proses kompilasi, pastikan peralatan development diatas telah terinstall dalam komputer Anda.
Mengambil Source Code JGlassPane
Hal pertama yang perlu kita lakukan adalah mengambil seluruh sourcecode JGlassPane. Seluruh sourcecode JGlassPane terdapat di website Github . Anda dapat mendownloadnya langsung (jika tidak memiliki Git ) atau dapat menggunakan Git untuk mendapatkan seluruh source code nya.
Adapun perintah untuk mendownload seluruh source code JGlassPane adalah sebagai berikut :
git clone git://github.com/stripbandunk/JGlassPane.git
Proses download source code JGlassPane :
git clone git://github.com/stripbandunk/JGlassPane.gitCloning into JGlassPane...
remote: Counting objects: 754, done.
remote: Compressing objects: 100% (277/277), done.
remote: Total 754 (delta 267), reused 687 (delta 200)
Receiving objects: 100% (754/754), 94.43 KiB | 24 KiB/s, done.
Resolving deltas: 100% (267/267), done.
Setelah selesai, maka akan tercipta sebuah folder JGlassPane beserta seluruh source code JGlassPane :
JGlassPane Folder
Melakukan Kompilasi JGlassPane
Setelah mendownload seluruh source code JGlassPane , saatnya melakukan kompilasi framework JGlassPane . Untuk melakukan kompilasi Anda perlu masuk ke folder JGlassPane menggunakan terminal / command prompt. Setelah itu gunakan perintah seperti dibawah ini :
mvn compile
Tunggu sampai proses kompilasi selesai. Pastikan Anda terkoneksi ke internet, karena proses kompilasi akan melakukan proses download dependency yang dibutuhkan lewat internet.
echo@echo-ubuntu:~/Desktop/JGlassPane$ mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JGlassPane
[INFO] JGlassPaneTest
[INFO] JGlassPane Framework
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPane 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ JGlassPane ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPane/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ JGlassPane ---
[INFO] Compiling 61 source files to /home/echo/Desktop/JGlassPane/JGlassPane/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPaneTest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ JGlassPaneTest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPaneTest/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ JGlassPaneTest ---
[INFO] Compiling 22 source files to /home/echo/Desktop/JGlassPane/JGlassPaneTest/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPane Framework 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JGlassPane ........................................ SUCCESS [2.413s]
[INFO] JGlassPaneTest .................................... SUCCESS [1.670s]
[INFO] JGlassPane Framework .............................. SUCCESS [0.001s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.272s
[INFO] Finished at: Sat Sep 24 11:03:53 WIT 2011
[INFO] Final Memory: 14M/89M
[INFO] ------------------------------------------------------------------------
echo@echo-ubuntu:~/Desktop/JGlassPane$
Melakukan Instalasi JGlassPane
Setelah melakukan proses kompilasi, saatnya melakukan proses instalasi. Proses instalasi ini akan meregister project JGlassPane ke Local Repository Apache Maven Anda dan juga menghasilkan file Jar yang dapat Anda gunakan dalam project Java.
Untuk melakukan proses instalasi JGlassPane , gunakan perintah sebagai berikut :
mvn install
Tunggu sampai proses instalasi selesai.
echo@echo-ubuntu:~/Desktop/JGlassPane$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JGlassPane
[INFO] JGlassPaneTest
[INFO] JGlassPane Framework
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPane 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ JGlassPane ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPane/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ JGlassPane ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ JGlassPane ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPane/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ JGlassPane ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ JGlassPane ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/echo/Desktop/JGlassPane/JGlassPane/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ JGlassPane ---
[INFO] Building jar: /home/echo/Desktop/JGlassPane/JGlassPane/target/JGlassPane-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ JGlassPane ---
[INFO] Installing /home/echo/Desktop/JGlassPane/JGlassPane/target/JGlassPane-1.0-SNAPSHOT.jar to /home/echo/.m2/repository/com/stripbandunk/JGlassPane/1.0-SNAPSHOT/JGlassPane-1.0-SNAPSHOT.jar
[INFO] Installing /home/echo/Desktop/JGlassPane/JGlassPane/pom.xml to /home/echo/.m2/repository/com/stripbandunk/JGlassPane/1.0-SNAPSHOT/JGlassPane-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPaneTest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ JGlassPaneTest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPaneTest/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ JGlassPaneTest ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ JGlassPaneTest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/echo/Desktop/JGlassPane/JGlassPaneTest/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ JGlassPaneTest ---
[INFO] Compiling 1 source file to /home/echo/Desktop/JGlassPane/JGlassPaneTest/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ JGlassPaneTest ---
[INFO] Surefire report directory: /home/echo/Desktop/JGlassPane/JGlassPaneTest/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.stripbandunk.test.jglasspane.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ JGlassPaneTest ---
[INFO] Building jar: /home/echo/Desktop/JGlassPane/JGlassPaneTest/target/JGlassPaneTest-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ JGlassPaneTest ---
[INFO] Installing /home/echo/Desktop/JGlassPane/JGlassPaneTest/target/JGlassPaneTest-1.0-SNAPSHOT.jar to /home/echo/.m2/repository/com/stripbandunk/test/JGlassPaneTest/1.0-SNAPSHOT/JGlassPaneTest-1.0-SNAPSHOT.jar
[INFO] Installing /home/echo/Desktop/JGlassPane/JGlassPaneTest/pom.xml to /home/echo/.m2/repository/com/stripbandunk/test/JGlassPaneTest/1.0-SNAPSHOT/JGlassPaneTest-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JGlassPane Framework 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ JGlassPane-Framework ---
[INFO] Installing /home/echo/Desktop/JGlassPane/pom.xml to /home/echo/.m2/repository/com/stripbandunk/JGlassPane-Framework/1.0-SNAPSHOT/JGlassPane-Framework-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JGlassPane ........................................ SUCCESS [2.486s]
[INFO] JGlassPaneTest .................................... SUCCESS [0.948s]
[INFO] JGlassPane Framework .............................. SUCCESS [0.005s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.618s
[INFO] Finished at: Sat Sep 24 11:05:01 WIT 2011
[INFO] Final Memory: 12M/89M
[INFO] ------------------------------------------------------------------------
echo@echo-ubuntu:~/Desktop/JGlassPane$
Setelah proses instalasi selesai, Anda dapat menggunakan file Jar JGlassPane dalam folder ‘JGlassPane/JGlassPane/target/JGlassPane-X.X-VERSION.jar ‘.
File Jar JGlassPane
Selamat melakukan kompilasi JGlassPane
Pingback: Menampilkan Pesan Transparan di Java Swing Menggunakan JGlassPane | StripBandunk
klo instalasi di window s ya apa mas ecckko?