java
Manajemen Layout
TUGAS
import javax.swing.*;
import java.awt.*;class TES extends JFrame {
JButton tombol0, tombol1, tombol2, tombol3, tombol4, tombol5, tombol6, tombol7, tombol8, tombol9, tombol10, tombol11;
JLabel Label1, Label2, Label3;
JPanel panelLabel, panel1, panel2, panel3;
public TES () {
setTitle ("MULTILAYOUT");
panelLabel = new JPanel (null);
Label1 = new JLabel ("FlowLayout");
Label2 = new JLabel ("NoneLayout");
Label3 = new JLabel ("NoneLayout");
panel1 = new JPanel (new FlowLayout());
tombol0 = new JButton ("0");
tombol1 = new JButton ("1");
tombol2 = new JButton ("2");
tombol3 = new JButton ("3");
panel2 = new JPanel (null);
tombol4 = new JButton ("4");
tombol5 = new JButton ("5");
tombol6 = new JButton ("6");
tombol7 = new JButton ("7");
Label3 = new JLabel ("GridLayout");
panel3 = new JPanel (new GridLayout(2,2));
tombol8 = new JButton ("8");
tombol9 = new JButton ("9");
tombol10 = new JButton ("10");
tombol11 = new JButton ("11");
setLayout (new BorderLayout());
add (Label1, "North");
add (Label2);
add (Label3);
add (panel1,"West");
panel1.add (tombol0);
panel1.add (tombol1);
panel1.add (tombol2);
panel1.add (tombol3);
add (panel2, "Center");
panel2.add (tombol4);
panel2.add (tombol5);
panel2.add (tombol6);
panel2.add (tombol7);
add (panel3, "East");
panel3.add (tombol8);
panel3.add (tombol9);
panel3.add (tombol10);
panel3.add (tombol11);
Label2.setBounds(225,-5,80,25);
Label3.setBounds(345,-5,80,25);
tombol5.setBounds(30,15,80,25);
tombol6.setBounds(30,40,80,25);
tombol7.setBounds(30,65,80,25);
tombol8.setBounds(30,90,80,25);
setSize(450,170);
setVisible(true);
setResizable(false);
setLocation(450,300);
setDefaultCloseOperation(3);
}
}
public class Tugas {
public static void main (String[]args) {
TES T = new TES();
}
}
JAVA BAB 12. JDBC(JAVA DATABASE CONNECTIVITY)
Connectivity) Ini postingan ke 12 SALSA yaaa, dimna ini post terakhir di pemograman Java.. Soryyy😊 jika, di post sebelum nya terdapat keslahan tulisan atau typo yg bertebaran, Saya mohon maaf Semoga dri java class 1 -12 ini memberikan manfaat,bab 12 ini membahas tentang Java Database Connectivity. Nahh!!! JDBC (Java Database Connectivity) adalah trademark dari Sun Microsystem yang merupakan bagian dari teknologi Java yang menangani pengolahan database. Java tidak membedakan cara pemrograman database yang satu dengan yang lainnya. Sebagai contoh : cara Java mengolah table Oracle dan MySQL sama saja,yang berbeda hanyalah alamat URL koneksi dan driver JDBC-nya. 1. KOMPONEN UTAMA JDBC JDBC memiliki beberapa komponen utama yang berhubungan dengan koneksi driver,koneksi database,eksekusi perintah SQL dll komponen-komponen tersebut antara lain: a. Driver adalah komponen untuk menangani masalah komunikasi dengan database server. b. DriverManager adalah komp...
Harrah's Hotel and Casino, Las Vegas - Mapyro
BalasHapusHarrah's Hotel and Casino is a 아이 벳 Casino in Las Vegas, NV. Find reviews, hours, directions, 광양 출장안마 and reviews for Harrah's Hotel and Casino in 전주 출장마사지 Las 제천 출장마사지 Vegas, Rating: 4.7 · 16 votes 안동 출장안마