Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

paint(Graphics gr) returns nullpointerexception ?  RSS feed

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I want to use the following codes to "paint" and image, and get a null pointer exception on my Java console.
Can someone please give me a hint what might have gone wrong ???

 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did the error message include any information on what part of the program may have caused the NullPointerException (such as a line number)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!