Herewith relevant code.
class Jexp3 extends JPanel implements MouseListener
{
int mouseX, mouseY;
int width, height;
Graphics2D graphics;
Color color;
public Jexp3()
Type: Posts; User: JohnRawson
Herewith relevant code.
class Jexp3 extends JPanel implements MouseListener
{
int mouseX, mouseY;
int width, height;
Graphics2D graphics;
Color color;
public Jexp3()
Graphics2D graphics;
graphics.fillOval(x1,y1,x2,y2);
The .java program compiles with no errors.
However. when I try to run it I get a long list of exceptions when it comes to the above...
Thanks.
I have learned all about packages.
It now works fine
I compile from the command prompt using the JDK tools.
I have set the class path.
I think that I have copied the demo exactly.
BlankArea.java compiled as did MouseEventDemo.java.
I come to Java...
Oracle's MouseEventDemo.java does not compile.
I get error message "Cannot find BlankArea class"
BlankArea class exists in same folder as MouseEventDemo.
I'm stumped.