Sunday, 15 December 2013

Simple Applications For Search Data Using MySQL with Java Sort By "Harga" Descending

First we create database and Insert data, like this.




we create form at same package with 
Class UrutDaftarHargaDenganDatabaseMySQL.java,
read http://eddysupriadi.blogspot.com/2013/12/simple-applications-for-input-and-view.html I will not explain how to create package again, ok. after create package, next step we create jFrame Form and named CariDataDiDatabaseMySQL, like this.

then, we create design form, like this.

Then, go to Source Code, insert Source Code, like this.



now, back to Design, and go to button "Cari" and right click, then search Events => Action => action.... like this.

then, insert Source Code for button "Cari", like this.


back again to Design, go to button "Keluar", right click and search Events => Action => action......like this.

then, insert Source Code for button "Keluar", like this.

Now click shift + F6 to Run this program, OutPut when insert 3.

Click button "Keluar", and run again this program with click Shift + F6, wait a few second, after show application, then insert 0, like this. it will show result and sort by "harga" descending.

Ok, This is my Simple Applications For Search Data Using MySQL with Java Sort By "Harga" Descending.  I Hope this is useful for you. thanks.

0 comments:

Post a Comment