PBO10 - GUI dalam Java
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; ...