import java.awt.Graphics;public class myLine{
    private int x1;
    private int x2;
    private int y1;
    private int y2;
    public myLine( int x1, int x2, int y1, int y2 ){
this.x1 = x1;
this.x2 = x2;
this.y1 = y1;
this.y2 = y2;
    }    public myLine(){
this( 0, 0, 0, 0 );
    }    public void draw( Graphics g ){
g.drawLine( x1, y1, x2, y2 );
    }}
import java.awt.Graphics;
import javax.swing.*;public class myApplet extends JApplet{
    myLine line = new myLine( 20, 20, 100, 100 );
    public void paint( Graphics g ){
super.paint( g );
line.draw( g );
    }
}结果什么都没有  为什么不能输出2条直线呢?