Its hard to tell what you are doing since we don't see the HTML you are using to invoke the applet.
However based on the comment in your code you may not be specifying the applet class correctly.
Your class is called "Line" so the applet code value should be "Line.class", not "demo13".
Joined: Nov 12, 2011
wih the help of above code i'm trying to draw lines just like in "paint".that's why i am using 4 integer variables to get the coordinates of the inital and final position of the cursor.
thanks for your reply but your suggestion didn't work.its still giving the same error.
i made corrections as told to me in above posts and in addition i didn't declare the class public.Now the program is working but i am not able to hold the lines,they vanish as soon as they are created....reply me as soon as possible.
Joined: Jun 13, 2009
i am not able to hold the lines,they vanish as soon as they are created