Tugas #PBOA-tugas 10 (Image Viewer 1-0)
Image Viewer 1.0 Untuk membuat image viewer versi 1.0 diperlukan sejumlah kelas berikut : ImageViewer ImagePanel ImageFileManager OFImage Berikut source code yang digunakan : ImageViewer import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.File; /** * Write a description of class ImageViewer here. * * @author (Nitama Nurlingga Yotifa) * @version (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 imagePanel; private JLabel filenameLabel; private JLabel statusLabel; private OFImage currentImage; /** * Create an ImageViewer show it on screen. */ public ImageViewer() { currentImage = null; makeFrame