This is the program I wrote LineRect just to draw a line a rectangle etc...... Y it is not working How can i used the same program to run without using applet that is by using awt and swing.........Pls Help me.............
import java.awt.*;
import java.io.*;

public class LineRect

{public void paint(Graphics g)

{g.drawLine(10,10, 50,50);
g.drawRect(10, 60, 40,30);
g.fillRect(60,10,30,80);
g.drawRoundRect(10,100,80,50,10,10);
g.fillRoundRect(20,110,60,30,5,5);
g.drawLine(100,10,230,140);
g.drawLine(100,140,230,10);
[/B]
}}
<APPLET
CODE =LineRect.class
WIDTH=250
HEIGHT=200>
</APPLET> :) :) :) :)