jmsrickland
Feb 25th, 2008, 01:24 PM
I have a Applet that compiles error free.
It has...
import java.awt.*;
'
'
'
void some_method(Graphics g)
{
'
'
g.drawImage(offscreenImg, 0, -60, this);
'
'
}
'
'
But when i put it in an Application like above I get following error:
error J0078: Class 'Graphics' doesn't have a method that matches 'drawImage(Image, int, int, MyJavaApp)
What am I missing in the Application?
It has...
import java.awt.*;
'
'
'
void some_method(Graphics g)
{
'
'
g.drawImage(offscreenImg, 0, -60, this);
'
'
}
'
'
But when i put it in an Application like above I get following error:
error J0078: Class 'Graphics' doesn't have a method that matches 'drawImage(Image, int, int, MyJavaApp)
What am I missing in the Application?