1  /*
  2   *  File:  LineTest2.java
  3   *
  4   *  Draw two diagonal lines
  5   *
  6   *  Copyright:  Northeast Parallel Architectures Center
  7   *  
  8   */
  9  
 10  import java.applet.Applet;
 11  import java.awt.Graphics;
 12  
 13  public class LineTest2 extends Applet {
 14  
 15     public void paint( Graphics g ) {
 16     
 17        // draw a line from ( 20, 10 ) to ( 220, 110 ):
 18        g.drawLine( 20, 10, 220, 110 );
 19        
 20        // draw a line from ( 20, 110 ) to ( 220, 10 ):
 21        g.drawLine( 20, 110, 220, 10 );
 22        
 23     }
 24  
 25  }
 26