Tuesday, April 25, 2017

Install JCalendar in Netbeans


How to add Calendar in netbeans ? in this tutorial, I will inform you to use calendar in java. If you want to make project using calendar, you must install JCalendar before. You can add JCalendar in palette so you can drag components from JCalendar to a form that you make before.

Oke, following this tutorial to add JCalendar.
1. Download JCalendar in Here
2. Extract JCalendar in directory that you select before.
3. Open Netbeans. Select Tools --> Libraries --> New Library...

4. Name it "JCalendar" or another name that you like. Then click OK

5. Click Add JAR/Folder, then select JCalendar plugin which you extract before.
6. jcalendar-1.3.2.jar for tab Classpath, jcalendar-1.3.2-source.jar for tab Sources, and jcalendar-1.3.2-javadoc.jar for tab Javadocs.

7. Now has been formed JCalendar Library. Next step, you select  Tools --> Palette -->Swing/AWT Components. 
8. Click button "New Category" then name it "JCalendar".

9. Click button "Add from Library...". Then you follow my instruction like pictures below
Java, JCalendar, calendar, netbeans, tutorial

Java, JCalendar, calendar, netbeans, tutorial

Java, JCalendar, calendar, netbeans, tutorial

10. Finally you success add JCalendar on your palette like a picture below.
Java, JCalendar, calendar, netbeans, tutorial

Oke, thanks for visit my blog, meet again in next tutorial.

Continue Reading
No comments
Share:

Monday, April 24, 2017

Making Report Using Jasper Report Netbeans

This tutorial discuss about how to make a report. Before make a report in netbeans, make sure ireport plugin had been installed on your laptop. How to install Jasper Report can be read in my previous tutorial : How to install Jasper Report Plugin in Netbeans. JasperReport Library is open source report machine which most popular in the world. JasperReport was wrote on java leanguage and it capable to use data which  originated from all kinds data source and produce pixel document, perfect to be seen , printed or exported in various document format including HTML, PDF, Excel, OpenOffice and Word.

Oke, Let's I show you, how to make report using JasperReport.
First, we must make a database and table to display in report. This a database and table that I use to display in report :
I had made database whih named "absensi". Then I made table named "mahasiswa".
Contents of table mahasiswa in picture below.

Second, makes java project named "LearnReport" (remember without spacing)
1. Make java project


2. Make java file named "ExampleReport".

3.  Make form using JFrame Form and named "PrintReport".


4. Drag jButton on your form, then edit name became "Print Report" like picture below.

5. Next, we make new project with jasper report.
Fist, choose "Report Wizard" then next

Choose layout do you want, in this tuttorial I choose Coffe. 

Next, I fill File Name of file report. I named it "Report.jrxml" (.*jrxml must be included)

Next, we must be make a connector / data source. Fuction of data source are storing data to display in report.

Make sure that you choose "Database JDBC Connection"

Then click next, and fill some requirment of JDBC Connection. Make sure that you fill are same with picture that I make below. Click button "Test" to knowing whether the connection is success.

For display data to report you must select what table which you want to display. You can write with SQL script or you can choose Design Query and select table that you want.

I choose table "mahasiswa" then click OK

Automatically Query (SQL) filled with script that used to display table mahasiswa.

After that, appear columns that you choose in query script. Move columns from left to right with push button ">>".

No group, straight to click next.

Finally all had done, click Finish

6. Display of report that we made before is like picture below.
IReport,Jasper Report, Java, Netbeans, Laporan
 Click view to generate file .jrxml to .jasper ,and load data form datasource.
IReport,Jasper Report, Java, Netbeans, Laporan

7. Time to coding. Open your java file (ExampleReport.java), then write the code like here :


Then, open your java file (PrintReport.java)
Right click button "Print Report", choose Event --> Action --> actionPerformed. After that you write code like this:


Before that you must adding libraries  in the top of code (Before pulic class PrintReport). Libraries that we use are sql and jasper report.


8. Download plugin for JasperReport in Here
9. Enter your plugin to libary in netbeans (Right Click Libraries --> Add JAR/Folder --> Select File Jar.
10. Running your project, then after appear Form PrintReport, you push the button. Automatically appear report like picture in below.
IReport,Jasper Report, Java, Netbeans, Laporan

If you succesfull with my tutorial, your program surely can display a report.
Oke, thanks for visit my blog, meet again in next tutorial.

Continue Reading
No comments
Share:

Wednesday, April 19, 2017

How to Install Jasper Report Plugin in Netbeans


When we build a system like desktop application using netbeans. Certainly need a report as output from the system. Netbeans is amazing IDE which provides various features including how to display a report. First step that you do to make report in netbeans is install JasperReport plugin. Because JasperReport is the only plugin which support netbeans to make and design report. You can download those in there --> Download.

Oke, straight to this post. I will explain how to install jasper report in netbeans.
1. First, Download JasperReport Plugin
2. Extract JasperReport Plugin to the folder you had choosen.
3. Open netbeans, then click Tool --> Plugin like picture below
4. Click tab Download after that choose Add Plugins..
5. Select all plugin, and then click open. If success then display like picture below
jasper report, report, netbeans, java, afandi nat

6. Tick all plugin, after that click install. So that appreal display like picture below
jasper report, report, netbeans, java, afandi nat
7.Tick "I accept term", then click next
I
8. Restart IDE now to feel effect of plugin, last click Finish.

If you do like steps that I explain, then you must be success install jasper report. You can know that plugin successfull with clik new file and choose Report Folder, like a picture below. If report folder created, then you already to design a report
jasper report, report, netbeans, java, afandi nat

I hope this tutorial help you 
See you next time ^^



Continue Reading
No comments
Share:

Sunday, April 9, 2017

Using Netbeans IDE to Run Python Code

Netbeans is very complete IDE, because it can open vary scipt language such as java, html and also php. Even now, this IDE can open (compile and running) python language. Python is open source language that always used for develop embedded system in microcontroller or mikroprocessor board. Oke, let's begin how to install python to Netbeans IDE.
1. Download plugin for pyhon in this link --> Click Here 
2. Extract your file which you downloaded.
3. Install plugin, look at toolbar, click Tools --> Plugin
4. Then, click Tab...Downloaded, click Add Plugin, and Then input extract result from file that you downloaded. So that appear like picture below
netbeans, plugin, python, code, programming, java
5. Click button Install
netbeans, plugin, python, code, programming, java

6. Click Next
netbeans, plugin, python, code, programming, java

7. Click checkbox for acept term, after that click Install
8. Wait for a moment, If Netbeans ask for Restart, Then click restart. 
9. After Netbeans turn up, you can make new project with python, like this.
netbeans, plugin, python, code, programming, java

Now, you can write some python code and run your code for knowing a result.
so, I hope this tutorial useful :D






Continue Reading
No comments
Share: