The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

I am new to Java programming by SkyHi2005-01-27 05:46:56
  I think Jeff UK is right on both accounts. by FenderSRV22005-01-27 07:19:59
    Disagree about the second. ;) by Hessofanes 2005-01-27 11:54:19
Jeff_UK is right about input being used uninitialized, but the call to add should succeed: If a function is called without an object on which it should be called, the object this is assumed - and this is Class distance which is a child of Applet which is a child of Panel which is a child of Container, which has add().

And the error SkyHi is getting is no compiler error, it is a runtime error: A standalone Java program is required to have a method
public static void main(String[] args)
as entry point. An applet is no standalone program, but is required to have certain other functions, namely init, start, stop and destroy - the only problem is that the IDE SkyHi is using doesn't recognize the program as an applet and seeks for the main() entry point - in vain. And the Java runtime engine can't spit out a line number of a source code it fails to find... ;)
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)