Computer Science Canada

Darts

Author:  nate [ Mon Dec 20, 2004 10:32 pm ]
Post subject:  Darts

A simple dart game using GUI. Anyways, its a 2 player game but its fairly simple and way 2 easy. If you want the source just ask. Just a note, when you want to change the delay in the text field you have 2 press ("New Game/Delay") to make work. Anyways here you go...

Author:  Hikaru79 [ Mon Dec 20, 2004 11:39 pm ]
Post subject:  Re: Darts

nate wrote:
A simple dart game using GUI. Anyways, its a 2 player game but its fairly simple and way 2 easy. If you want the source just ask. Just a note, when you want to change the delay in the text field you have 2 press ("New Game/Delay") to make work. Anyways here you go...


Ah, but you've already given us the source... it's .java Wink However, I don't think you gave us all of it -- there's no 'main' method in this. My compiler gave me

code:

adrian@ubuntu:~/Desktop $ java darts.Darts
Exception in thread "main" java.lang.NoSuchMethodError: main


(I added the package line by myself, btw). And when I checked the code in Eclipse, there is indeed no main...

Author:  nate [ Sat Jan 01, 2005 6:15 pm ]
Post subject: 

Theres no main method cause its sapposed 2 be an applet. If you run it in Ready to Program it works fine for me.?????????


: