|
-
May 3rd, 2000, 03:00 PM
#1
NullPointerException in Panel
Hi there,
How come you cant do this in a class that extends Panel:
Image image = createImage( 20, 30);
Graphics g = image.getGraphics();
The last line throws a NullPointerException at runtime. Do the Panel need to implement something ???
Soren Staun Jorgensen
CADeye
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|