Johannes Simatupang, MKom, Cobit5-F NIDN : 0318017001 Pemrograman Berbasis Desktop Johannes Simatupang, MKom, Cobit5-F NIDN : 0318017001 Day-2
MindMap For Learning Process
Basic Swing Controls (1) Components Libraries Pallete Purpose Panel javax.swing.JPanel Generic Container Label javax.swing.Jlabel Display for Text String Text Field javax.swing.JTextField Single Line Text Entry Button javax.swing.JButton Push Button Source Code Compiling Source Code Java Application (jar) Press [F6] Press [Shift]+[F11]
#1 Project Application (1): Number Addition Buatlah sebuah Program sederhana untuk menjumlah 2(dua) buah angka dengan tampilan sebagai berikut:
#1 Project Application (2): Number Addition 3(tiga) langkah untuk membuat Aplikasi Number Addition, sbb: Buat sebuah Project di Netbeans IDE Buat Data Entry Form Buat Jframe Container Tambahkan Components dari Palette Swing Controls Ganti Text Property Components Entri Java Coding Function untuk menjumlahkan 2(dua) buah Angka Buat tombol Button Exit Buat tombol Button Clear Buat tombol Button Add Running program dengan [F6] atau [Shift]+[F11]
#1 Project Application (3): Number Addition >> 1 #1 Project Application (3): Number Addition >> 1. Buat Project di Netbeans Click Menu File > New Project. Di Categories pane, pilih Java node. Di Projects pane, pilih Java Application. Kemudian Click Next. Ketk NumberAddition di Project Name dan tentukan folder/path. Un-Centang(Deselect) checkbox Create Main Class. Click tombol Finish.
#1 Project Application (4): Number Addition >> 2 #1 Project Application (4): Number Addition >> 2. Buat Data Entry Form a) Buat JFrame container Di Projects window, right-click pada NumberAddition node dan pilih New > Other. Di New File dialog box, pilih Swing GUI Forms category dan JFrame Form file type. Kemudian Click Next. Ketik NumberAdditionUI sebagai class name. Ketik my.numberaddition sebagai package. Click Finish.
#1 Project Application (5): Number Addition >> 2 #1 Project Application (5): Number Addition >> 2. Buat Data Entry Form b) Tambahkan Components dari Palette Swing Controls
#1 Project Application (6): Number Addition >> 2 #1 Project Application (6): Number Addition >> 2. Buat Data Entry Form c) Ganti Text Property Components
#1 Project Application (7): Number Addition >> 3 #1 Project Application (7): Number Addition >> 3. Entri Java Coding Function a) Buat tombol Button Exit Ketik Java Code sbb: System.exit(0); *** Perhatian *** Java Code bersifat Case Sensitive
#1 Project Application (7): Number Addition >> 3 #1 Project Application (7): Number Addition >> 3. Entri Java Coding Function b & c) Buat tombol Button Clear dan Add
Java Languages Basic: Data Types 3(tiga) kategori Data Type di Bahasa Pemrograman Java, sbb: Numeric short, int, long, float dan double Text byte dan char Boolean & Null boolean dan null
Java Languages Basic: Variables Deklarasi Variabel dan assignment operation
Java Languages Basic: Statement
Java Languages Basic: Arithmetic Expressions
Java Languages Basic: Boolean Expression Comparative Operator Boolean Operator
Java Languages Basic: IF Simple Statement Struktur IF sbb:
Java Languages Basic: IF ELSE Statement Struktur if else sbb: dapat disederhanakan
Java Languages Basic: If/else-if/else Statement Struktur if else if sbb:
Basic Swing Controls (2) Components Libraries Pallete Purpose Combo Box javax.swing.JComboBox DropDown List Check Box javax.swing.JCheckBox Item Selection Spinner javax.swing.JSpinner User Select a number Source Code Compiling Source Code Java Application (jar) Press [F6] Press [Shift]+[F11]
Property ComboBox
Property Spinner
#1 Project Application (2): SimplePOS Buat sebuah Aplikasi Sederhana SimplePOS untuk menghitung penjualan ItemName terdiri dari : 1) Kopi Kapal Api 25 Gran 2) Pepsodent 35 Gram 3) Sabun Lux Harga Item 1 Rp 12000 Item 2 Rp 16000 Item 3 Rp 20000 Amount = Item Price X Qty - DiskonAmount
#1 Project Application (3): SimplePOS 3(tiga) langkah untuk membuat Aplikasi SimplePOS, sbb: Buat sebuah Project di Netbeans IDE Buat Data Entry Form Buat Jframe Container Tambahkan Components dari Palette Swing Controls Ganti Text Property Components Set Model Property Combo Box Set Coding di Events ActionPerformed Combo Box Set Coding di Events ItemStateChanged CheckBox Set Model Property Spinner Entri Java Coding Function untuk menjumlahkan 2(dua) buah Angka Buat tombol Button Calculated Buat tombol Button Reset Running program dengan [F6] atau [Shift]+[F11]
#2 Project Application (2): SimplePOS >> 1 #2 Project Application (2): SimplePOS >> 1. Buat sebuah Project di Netbeans IDE Click Menu File > New Project. Di Categories pane, pilih Java node. Di Projects pane, pilih Java Application. Kemudian Click Next. Ketk SimplePOS di Project Name dan tentukan folder/path. Un-Centang(Deselect) checkbox Create Main Class. Click tombol Finish.
#2 Project Application (2): SimplePOS >> >> 2 #2 Project Application (2): SimplePOS >> >> 2. Buat Data Entry Form a) Buat JFrame container Di Projects window, right-click pada SimplePOS node dan pilih New > Other. Di New File dialog box, pilih Swing GUI Forms category dan JFrame Form file type. Kemudian Click Next. Ketik SimplePOSUI sebagai class name. Ketik my.simplepos sebagai package. Click Finish.
#2 Project Application (2): SimplePOS >> >> 2 #2 Project Application (2): SimplePOS >> >> 2. Buat Data Entry Form b) Tambahkan Components dari Palette Swing Controls
#2 Project Application (2): SimplePOS >> >> 2 #2 Project Application (2): SimplePOS >> >> 2. Buat Data Entry Form e) Set Coding di Events ActionPerformed Combo Box
#2 Project Application (2): SimplePOS >> >> 2 #2 Project Application (2): SimplePOS >> >> 2. Buat Data Entry Form f) Set Coding di Events ItemStateChanged CheckBox
#2 Project Application (2): SimplePOS >> >> 3 #2 Project Application (2): SimplePOS >> >> 3. Entri Java Coding Function a) Buat tombol Button Calculated
Assignment Project #1 Lihat Materi Tugas (Assignment Project) #1 di www.opensolusi.info di Download Corner
Thankyou