EAS PBO-B
Berikut merupakan ImageViewer yang saya kembangkan dari ImageViewer 3.0 sebelumnya dengan penambahan fitur crop. 1. Image Viewer 1: import java.awt.*; 2: import java.awt.event.*; 3: import javax.swing.*; 4: import javax.swing.border.*; 5: import java.io.File; 6: import java.util.List; 7: import java.util.ArrayList; 8: /** 9: * ImageViewer is the main class of the image viewer application. It builds and 10: * displays the application GUI and initialises all other components. 11: * 12: * To start the application, create an object of this class. 13: * 14: * @author Michael Kolling and David J Barnes 15: * @version 3.0 16: */ 17: public class ImageViewer 18: { 19: // static fields: 20: private static final String VERSION = "Version 3.0"; 21: private static JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir")); 22: // fields: 23: private JFrame fram...