// Fig. 6.3: TimeTest.java
// Class TimeTest to use imported class Time1
import java.awt.Graphics;
import java.applet.Applet;
import com.deitel.jhtp2.ch06.Time1;  // import our Time1 class

public class TimeTest extends Applet {
   private Time1 t;

   public void init()
   {
      t = new Time1();
      t.setTime( 13, 27, 06 );
   }
 
   public void paint( Graphics g )
   {
      g.drawString( "Military time is: " + 
                    t.toMilitaryString(), 25, 25 );
      g.drawString( "Standard time is: " +
                    t.toString(), 25, 40 );
   }
}
