Thursday, September 25, 2014
Friday, September 19, 2014
Thursday, September 18, 2014
Wednesday, September 17, 2014
Menggunakan JForm dan Constructor
1:26:00 PM
No comments
import javax.swing.*;
import java.awt.*;
public class Latihan3 extends JFrame{
//Deklarasi array
String[] arrAgm = {"Islam","Kristen","Khatolik","Hindu","Budha"
};
//Deklarasi objek / variabel
JTextField txtNIM = new JTextField("Untuk tempat nim");
JLabel lblnim = new JLabel("NIM :");
JLabel lblnama = new JLabel("Nama :");
JTextField txtNama = new JTextField("Untuk tempat nama");
JLabel lblJK = new JLabel("Jenis Kelamin :");
JRadioButton rbpria = new JRadioButton("Pria");
JRadioButton rbwanita = new JRadioButton("Wanita");
JLabel lblagama = new JLabel("Agama :");
JComboBox cmbAgama = new JComboBox(arrAgm);
import java.awt.*;
public class Latihan3 extends JFrame{
//Deklarasi array
String[] arrAgm = {"Islam","Kristen","Khatolik","Hindu","Budha"
};
//Deklarasi objek / variabel
JTextField txtNIM = new JTextField("Untuk tempat nim");
JLabel lblnim = new JLabel("NIM :");
JLabel lblnama = new JLabel("Nama :");
JTextField txtNama = new JTextField("Untuk tempat nama");
JLabel lblJK = new JLabel("Jenis Kelamin :");
JRadioButton rbpria = new JRadioButton("Pria");
JRadioButton rbwanita = new JRadioButton("Wanita");
JLabel lblagama = new JLabel("Agama :");
JComboBox cmbAgama = new JComboBox(arrAgm);
Subscribe to:
Posts (Atom)