Image Viewer versi 3
Pada kesempatan kali ini saya akan posting kodingan image viewer dengan bahasa Java menggunakan BlueJ IDE. kodingan ini saya kutip dari author buku yang kami pelajari. Berikut gambar mapping class-classnya. 1. Image Viewer 1: import java.awt.*; 2: import java.awt.event.*; 3: import java.awt.image.*; 4: import javax.swing.*; 5: import javax.swing.border.*; 6: import java.io.File; 7: import java.util.List; 8: import java.util.ArrayList; 9: import java.util.Iterator; 10: /** 11: * ImageViewer is the main class of the image viewer application. It builds and 12: * displays the application GUI and initialises all other components. 13: * 14: * To start the application, create an object of this class. 15: * 16: * @author Michael Kolling and David J Barnes 17: * @version 3.0 18: */ 19: public class ImageViewer 20: { 21: // static fields: 22: private static final String VERSION = "Version 3.0"; 23: ...
Komentar
Posting Komentar