I want to know how to call the above function ???
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class GridDrawingApplet extends Applet {
public void paint (Graphics g)
{
// Draw the vertical lines:
g.drawLine (0,0, 0,240);
}
}
public static void main(String []args)
{
// now i want to call the above function here how do i do it ....
// the void paint (Graphics g) function
}
can some one plzz help me with the code .....