June 2005
Beginner to intermediate
336 pages
6h 29m
English
As with the previous windowed application in this book, the window the application draws is created in the application's constructor. And like the previous applications so far, this one is based on the Frame class.
Here's what Graphicizer's main method and constructor looks like; the constructor creates the window:
public class Graphicizer extends Frame implements ActionListener { BufferedImage bufferedImage, bufferedImageBackup; Image image; Menu menu; MenuBar menubar; MenuItem menuitem1, menuitem2, menuitem3, menuitem4; Button button1, button2, button3, button4, button5; FileDialog dialog; public static void main(String[] args) { new Graphicizer(); } public Graphicizer() { setSize(400, 360); setTitle("The Graphicizer"); ...Read now
Unlock full access