import Photo; import java.awt.*; import java.awt.image.*; import java.io.File; import SimpleOutput; import SimpleInput; import java.lang.InterruptedException; /** * Tests our Photo class. * * @version 1.0 of 11/19/99 * @author Gail Bonath * @author Joe Pipkins * @author Minna Mahlab * @author Kate Ducey */ public class MainTest { public static void main(String[] args){ SimpleOutput out = new SimpleOutput(); SimpleInput in = new SimpleInput(); out.print("Please type in the sender's username: "); String sender = in.readString(); out.print("Please type in the recipient's username: "); String user = in.readString(); out.print("Is the sender a GMail user? "); String local = in.readString(); if (local.equals("yes")) { Photo test = new Photo(sender, user, true); test.displayPhoto(); try { test.wait(60); }//try catch(InterruptedException e) {}//catch test.closeWindow(); } // if else { Photo test = new Photo(sender, user, false); test.displayPhoto(); test.closeWindow(); } // else } // main } // MainTest2