CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2000
    Posts
    3

    Poor Newbie seeking help

    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


  2. #2
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    22

    Re: Poor Newbie seeking help

    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

  3. #3
    Join Date
    Oct 2000
    Posts
    3

    Re: Poor Newbie seeking help

    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


  4. #4
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    22

    Re: Poor Newbie seeking help

    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

  5. #5
    Join Date
    Oct 2000
    Posts
    3

    Re: Poor Newbie seeking help

    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


  6. #6
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    22

    Re: Poor Newbie seeking help

    http://java.sun.com/j2se/1.3/jre/

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured