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 9 - Pemrograman Berbasis Objek Membuat ImageViewer dengan GUI dalam java di BlueJ Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Berbasis Objek A Source Code: ImageViewer 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 Michael Kolling and David J Barnes * @version 1.0 */ 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 imagePanel; private JLabel filenameLabel; ...
Comments
Post a Comment