we uses same package and Database with Class
and Class
or we create new package, it's optional.. So, I will not explain create new package again, and not explain create new JFrame Form again. Describe table "produkharga".
Record table "produkharga".
this class we named CariAntara2DataDiDatabaseMySQL, go to Source, and insert Source Code like this.
then go to design, create form like this.
Move Cursor to Button "Tampilkan" and Right Click, then will show like this.
then, insert Source Code, like this.
then, go back to design, move cursor to button "Keluar" and Right Click, like this.
then, insert Source Code, like this.
Now, run this program, Click Shift + F6, insert "Harga Terendah" = 28000 and "Harga Tertinggi" = 32000 like this.
OutPut when Insert "Harga Terendah" = 20000 and "Harga Tertinggi" = 30000.
OutPut when insert "Harga Terendah" = 20000 and "Harga Tertinggi" = 40000
Ok, this is my Simple Applications For Search Between Two Data Using MySql with Java Sort Descending. I Hope this is useful for you, thank's.
0 comments:
Post a Comment