This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Minggu, 07 April 2013

Membuat Program Input Data dari Netbeans ke MySQL

Tutorial ini akan membahas koneksi Netbeans ke MySQL melalui JDBC driver. Pada tutorial ini kita akan menggunakan swing GUI form untuk mempermudah design antarmuka.
Buat database MySQL terlebih dahulu melalui program-program / cms yang memudahkan Anda.

Load library MySQL JDBC driver.


Buat sebuah java file dengan nama KoneksiDB.java
Buka source code dan tambahkan beberapa deklarasi.
Tambahkan sebuah jFrame dan tambahkan beberapa properties dengan event sebuah button mouse click lalu isikan dengan kode berikut ini.
Coba jalankan program. Jika berhasil maka akan muncul seperti gambar di bawah ini.

Jika dicek pada MySQL maka data telah tersimpan.

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites