GUI Membuat Graphical User Interface Image Viewer 1.0 Nama : Zahrul Zizki D NRP : 05111740000168 Kelas : PBO - B Berikut adalah membuat image viewer dengan graphical user interface menggunakan blueJ Source code IMAGE VIEWER import java.awt.*; import java.awt.event.*; import java.awt.image.*; import javax.swing.*; import java.io.File; /** * ImageViewer is the main class of the image viewer application. It builds and * displays the application GUI and initialises all other components. * * To start the application, create an object of this class. * * @author Zahrul Zizki D * @version 1.0/20181126 */ public class ImageViewer { // static fields: private static final String VERSION = "Version 1.0"; private static JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir")); // fields: private JFrame frame; private ImagePanel imageP...
Postingan
Menampilkan postingan dari November, 2018
PBO-B fox and rabbit
- Dapatkan link
- X
- Aplikasi Lainnya
Nama : Zahrul Zizki D NRP : 05111740000168 Kelas : PBO-B Tugas : Fox And Rabbit Rabbit import java.util.List; import java.util.Random; /** * A simple model of a rabbit. * Rabbits age, move, breed, and die. * * @author David J. Barnes and Michael Kolling * @version 2008.03.30 */ public class Rabbit { // Characteristics shared by all rabbits (static fields). // The age at which a rabbit can start to breed. private static final int BREEDING_AGE = 5; // The age to which a rabbit can live. private static final int MAX_AGE = 40; // The likelihood of a rabbit breeding. private static final double BREEDING_PROBABILITY = 0.15; // The maximum number of births. private static final int MAX_LITTER_SIZE = 4; // A shared random number generator to control breeding. private static final Random rand = Randomizer.getRandom(); // Individual characteristics (instance fields). // The rabbit...
- Dapatkan link
- X
- Aplikasi Lainnya
Nama : Zahrul Zizki D NRP : 05111740000168\ KELAS : PBO - B Tugas : Database Akademik(Inheritance) Berikut adalah program untuk Database Akademik Sourcecode Buku /** * @author Zahrul Zizki D * @version 1.6/20181119 */ public class buku { private String judul; private String penulis; public buku(String Buku, String Penulis) { judul = Buku; penulis = Penulis; } public String getBuku() { return judul; } } SourceCode Pegawai import java.util.ArrayList; /** * @author Zahrul Zizki D * @version 1.3/20181119 */ public class pegawai extends id { private String nid; private ArrayList<buku> Buku; public pegawai(String name, String NID, String address, int age) { super(name, address, age); nid = NID; } public void Pinjam(buku ABuku) { Buku.add(ABuku); } public void Pengemb...