Glad to help, and being of Irish descent, I appreciate the compliment. Good luck!
Type: Posts; User: GregBrannon
Glad to help, and being of Irish descent, I appreciate the compliment. Good luck!
So you found the two instances of DrawPanel (good job), but to make the lesson even more useful, you deleted the wrong one. Why is the instance of DrawPanel created in the DrawFrame() constructor...
Dang. I want you to think about this and figure it out, because it's a common mistake made by those new to working with objects.
Two instances of DrawPanel are created, one each in two different...
This isn't your problem, but it's an interesting logic error. Think about it:
// sets the type of shape to draw
public void setShapeType( int shapeType )
{
if ( shapeType < 0 ||...
Welcome to the forum. Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.
Some highlights: Posting code in code tags is preferred over...