14111101 Choirul Mustopa -...
Transcript of 14111101 Choirul Mustopa -...
Tugas
Pemrograman Berbasis Java
14111101
Choirul Mustopa
NIM : 14111063
Nama : Tri Gunawan
Fakultas Teknologi Informasi
Universitas Mercu Buana Yogyakarta
2016
Daftar Isi
Tugas ....................................................................................................................................................... 1
Daftar Isi ................................................................................................................................................. 2
1.Package Konfig .................................................................................................................................... 3
A. Connect .......................................................................................................................................... 3
2.Package GUI ........................................................................................................................................ 4
A. Menu .............................................................................................................................................. 4
1. Desain ......................................................................................................................................... 4
2. Komponen ................................................................................................................................... 4
3. Source Code ................................................................................................................................ 4
4. Hasil ............................................................................................................................................ 5
B.Input Mahasiswa ............................................................................................................................. 6
1. Desain ......................................................................................................................................... 6
2. Komponen ................................................................................................................................... 6
3. Source Code ................................................................................................................................ 7
4. Hasil ............................................................................................................................................ 9
C. Input Agama ................................................................................................................................. 11
1. Desain ....................................................................................................................................... 11
2. Komponen ................................................................................................................................. 12
3. Source Code .............................................................................................................................. 12
4. Hasil .......................................................................................................................................... 15
D. Input Prodi.................................................................................................................................... 16
1. Desain ....................................................................................................................................... 16
2. Komponen ................................................................................................................................. 17
3. Source Code .............................................................................................................................. 17
4. Hasil .......................................................................................................................................... 20
1.Package Konfig
A. Connect
2.Package GUI
A. Menu
1. Desain
Menu File
Menu Input
2. Komponen
Jframe -> Title : Menu
Komponen :
No Komponen Properties Name Code : Variable
Name
1 JmenuBar menutama
2 Jmenu File menu_file
3 Input menu_input
4 JmenuItem-> File About file_about
5 Exit file_exit
6 JmenuItem-> Input Mahasiswa input_mhs
7 Agama input_agama
8 Prodi input_prodi
9 Separator spacemhs
10 spaceagma
3. Source Code
File -> About
File -> Exit
Input -> Mahasiswa
Input -> Agama
Input -> Prodi
4. Hasil
File -> About
B.Input Mahasiswa
1. Desain
Form Mahasiswa
Keterangan :
Save -> Menyimpan data ke table
Update-> Edit data berdasarkan kunci
Delete -> Menghapus data dari kunci
Table
2. Komponen
Jframe -> Title : Mahasiswa
Komponen :
No Komponen Properties : Name Code : Variable Name
1 JLabel NIM label_nim
2 Nama label_nama
3 JTextField kolom_nim
4 kolom_nama
5 JButton Save tombol_save
6 Update tombol_edit
7 Delete tombol_delet
3. Source Code
Import
Method Clear
KeyPressed : kolom_nim
Jbutton : tombol_save
Jbutton : tombol_edite
Jbutton : tombol_delet
4. Hasil
KeyPressed : kolom_nim
JButoon :Save
Jbutton : Update
Jbutton : Delete
C. Input Agama
1. Desain
Form Agama
Keterangan :
Save -> Menyimpan data ke table
Update-> Edit data berdasarkan kunci
Delete -> Menghapus data dari kunci
Table
2. Komponen
Jframe -> Title : Agama
Komponen :
No Komponen Properties : Name Code : Variable Name
1 JLabel Kode Agama label_kode
2 Agama label_agama
3 JTextField kolom_kode
4 kolom_agama
5 JButton Save tombol_save
6 Update tombol_edit
7 Delete tombol_delet
3. Source Code
Import
Method Clear
KeyPressed : kolom_kode
JButton : tombol_save
Jbutton : tombol_edit
Jbutton : tombol_delet
4. Hasil
KeyPressed : kolom_kode
Jbutton : Save
Jbutton : Update
Jbutton : Delete
D. Input Prodi
1. Desain
Form Prodi
Keterangan :
Save -> Menyimpan data ke table
Update-> Edit data berdasarkan kunci
Delete -> Menghapus data dari kunci
Table
2. Komponen
Jframe -> Title : Program Studi
Komponen :
No Komponen Properties : Name Code : Variable Name
1 JLabel Kode Prodi label_kode
2 Prodi label_prodi
3 JTextField kolom_kode
4 kolom_prodi
5 JButton Save tombol_save
6 Update tombol_edit
7 Delete tombol_delet
3. Source Code
Import
Method Clear
KeyPressed : kolom_kode
Jbutton : tombol_save
Jbutton : tombol_edit
Jbutton : tombol_delet
4. Hasil
KeyPressed : kolom_kode
Jbutton : Save
Jbutton : Update
Jbutton : Delete