import cs1.Keyboard;

public class A2Driver{

	public static void main (String[] args){

				
	
		// ---------- Create a window to draw UPC code		
		WindowUPC myWindow = new WindowUPC("Hello");
		myWindow.setSize(105, 105);
		myWindow.show();
		
		// ---------- Exit the window
		int toExit;		
		do{
			System.out.print("Enter 0 to exit: ");
			toExit = Keyboard.readInt();
		}while (toExit != 0);
			
		myWindow.exitWindow();
		
	}
		
}
