Look and feel di java swing

kemarin saya baru mencoba utak-atik neatbeans dan saya tertarik dengan tampilan jawa swing karena saya hanya suka nimbus ,tetapi masih banyak look and feel di java swing nih salah satunya yang bisa di pakai :

look and feel sesuai thema yang terinstall di os anda:

public static void main(String[] args) {
// TODO code application logic here
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
new FormColor().setVisible(true);
}
}

ini untuk nimbus:

public static void main(String[] args) {
// TODO code application logic here
try {
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (Exception e) {
e.printStackTrace();
}
new FormColor().setVisible(true);
}
}


One thought on “Look and feel di java swing

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s