TUGAS 9 - Pemrograman Berbasis Objek Membuat ImageViewer dengan fitur filter menggunakan GUI dalam java di BlueJ Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Berbasis Objek A Source Code: ImageFileManager import java.awt.image.*; import javax.imageio.*; import java.io.*; /** * ImageFileManager is a small utility class with static methods to load * and save images. * * The files on disk can be in JPG or PNG image format. For files written * by this class, the format is determined by the constant IMAGE_FORMAT. * @author Bastian Farandy * @credits Michael Kolling and David J Barnes * @version 2.0 */ public class ImageFileManager { // A constant for the image format that this writer uses for writing. // Available formats are "jpg" and "png". private static final String IMAGE_FORMAT = "jpg"; /** * Read an image file from disk and return it as an imag...
TUGAS 6 - Pemrograman Berbasis Objek Membuat sistem lelang (Auction) dengan menggunakan Grouping Objects dalam program BlueJ Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Berbasis Objek A Source Code : Auction import java.util.ArrayList; /** * Model Auction * Author : Bastian Farandy * NRP : 05111740000190 */ public class Auction { private ArrayList<Lot> lots; //membuat sebuah list barang dalam suatu auction private int LotNumber; //fungsi untuk membuat Auction yang baru public Auction() { lots = new ArrayList<Lot>(); //membuat list barang LotNumber = 1; //nomor barang dimulai dari 1 } //fungsi untuk menambahkan barang baru ke dalam Auction public void enterLot(String deskripsi) { lots.add(new Lot(LotNumber, deskripsi)); LotNumber++; } //fungsi untuk melakukan penawaran (bid) public void MakeBid(int CurrentlotNum...
Comments
Post a Comment