View Single Post
  #2 (permalink)  
Old 08-07-2007, 08:11 AM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
NullPointerException means that you're trying to use an object that is null, i.e., you haven't "new"-ed it.
You're not showing all of the code, and you didn't say when exactly you're getting the exception (immediately, or when you click the applet with the mouse?). Are you sure you created th, because I don't see that in the code, and if you didn't then th.start() would throw an NullPointerException because that is null.
Reply With Quote