Click to See Complete Forum and Search --> : Poor Newbie seeking help


Apoc
October 4th, 2000, 07:07 AM
I need some help with my applet i just started to learn and got the homework to write an aplet that draws Lines on Mousclick can someone help me out with this or give me a hint cause i always get the error that drawLine(x1,y1,x2,y2) isnt a known Method or something like that.......
If someone could write a good Applet with that so i could check where ma fault ist i would be very happy =)

Thx Apoc

laneh
October 4th, 2000, 04:24 PM
I won't write your homework for you, but did you import the correct classes into java to be able to access the drawLine(..) method? hint: you should import java.awt.Graphics

check here for help:
http://java.sun.com/j2se/1.3/docs/api/index.html
also check the java tutorial on sun's website ( java.sun.com ).. you might find the answer to your problem in the tutorials

"There are no facts, only interpretations."
-Friedrich Nietzsche

Apoc
October 4th, 2000, 07:13 PM
I importet the Applet calss and the whole awt clas java.awt.* so this is not the problem...... that why i dont know a solution... =(

Thy Apoc

laneh
October 4th, 2000, 10:01 PM
have you checked your CLASSPATH and made sure the .jars are listed correctly? also have you d/l'd the newest JRE? If it compiles after fixing the classpath and won't run, then there is probably a JRE problem.. if it doesn't compile make sure all of your statements are capitalized correctly, since Java is case sensitive.

"There are no facts, only interpretations."
-Friedrich Nietzsche

Apoc
October 5th, 2000, 06:47 AM
Mhhh my CLasspath is right i checked this firt and i wrote all words right so it could be a JRE problem. SO could u tell me where i can download the latest Version so that i can try that out.... =)

Thx Apoc

laneh
October 5th, 2000, 07:32 AM
http://java.sun.com/j2se/1.3/jre/

"There are no facts, only interpretations."
-Friedrich Nietzsche