Hi, I am having some problems with a JApplet I'm making. I ran into this problem before, but I think I got around it by using Applet instead of JApplet, but that didn't work for this one. When I compile, I get the error "Cannot resolve symbol: class Graphics..."
Here is part of my code.
import java.awt.event.*;
import javax.swing.*;
public class MyApplet extends JApplet implements ActionListener, MouseListener, MouseMotionListener
{
public void paint(Graphics page)
{
if (!closed) {
page.drawPolyline();
}
else {
page.fillPolygon();
}
}
Here is part of my code.
import java.awt.event.*;
import javax.swing.*;
public class MyApplet extends JApplet implements ActionListener, MouseListener, MouseMotionListener
{
public void paint(Graphics page)
{
if (!closed) {
page.drawPolyline();
}
else {
page.fillPolygon();
}
}