This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes paint(Graphics gr) returns nullpointerexception ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "paint(Graphics gr) returns nullpointerexception ?" Watch "paint(Graphics gr) returns nullpointerexception ?" New topic
Author

paint(Graphics gr) returns nullpointerexception ?

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
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 ???



humanum errare est.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Did the error message include any information on what part of the program may have caused the NullPointerException (such as a line number)?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: paint(Graphics gr) returns nullpointerexception ?
 
Similar Threads
How to use AWT's Frame()???
Sunday 11pm - defeated by BLOB . Want to see whether you can do this ?
multiple painting components
Images on Applet?
Help : can I load a byte array as an image ???