import java.util.Scanner; /** * Creating an instance of Scanner and Frame fun class. * This program will create two frames, one of static name * and size, the other is built with user input. * *Hunter Lloyd * 2/7/2005 */ public class ObjectsFun { public static void main(String [] args) { FrameFun ff = new FrameFun(); ff.buildFrame(100, 200, "myFrame"); Scanner stdin = new Scanner(System.in); System.out.println("What would you like the name of your frame to be?"); String name = stdin.nextLine(); System.out.println("What is the width?"); int w = stdin.nextInt(); System.out.println("What is the height?"); int h = stdin.nextInt(); ff.buildFrame(w, h, name); } }