How to Import CSV to Databases In JAVA GUI

Now i will explain how to import your csv to database in JAVA GUI. You must make class java for connect to your database.

1. You must make class java for connect to your database.

makeClassConnect

and this example code for connect to your database.

connectClass

2. Make new Jframe class and put two Jbutton on your jframe.

ImportCsvClass

3. We make filechooser for take your csv file.

eventChooseFile

and  the code for filechooser

filechooser

4. after that, we make import for import csv to database.

eventImport

 

and the code for import csv

codeImport

Continue reading

Advertisements

How to install Maven On Windows 8

Yang belum tahu maven itu apa silahkan langsung kesini aja .

langsung aja yah ..

  1. Pertama download maven di website ini 
  2. extract folder manapun. kalau saya di drive c
  3. kemudian setting environment variables dengan cara klik kanan di my computer dan klik properties

klikadvance
     4. klik advanced system setting untuk memunculkan system properties Continue reading