import java.applet.*;
import java.awt.*;
public class Drawline extends Applet
{
private static final long serialVersionUID = 1L;
int width, height;
public void init()
{
width = getSize().width;
height = getSize().height;
setBackground( Color.black );
}
public void paint( Graphics myGraphics )
{
myGraphics.setColor( Color.blue );
for ( int i = 0; i < 10; ++i )
{
myGraphics.drawLine( width, height, i * width / 10, 0 );
}
} //end paint
} //end class