// File: ex6.java (Module 9) // // Author: Rahul Simha // Created: October 13, 1998 // // Template for Ex. 9.6 - getting image sizes. import java.awt.*; import java.net.*; class NewFrame extends Frame { // Constructor. public NewFrame (int width, int height) { // Set the title and other frame parameters. this.setTitle ("Exercise 9.6"); this.setResizable (true); this.setBackground (Color.cyan); this.setSize (width, height); // Show the frame. this.setVisible (true); } // Override paint(): public void paint (Graphics g) { } // "paint" } // End of class "NewFrame" public class ex6 { public static void main (String[] argv) { NewFrame nf = new NewFrame (300, 200); } }