Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,014

    Re: what's wrong with my code

    Glad to help, and being of Irish descent, I appreciate the compliment. Good luck!
  2. Replies
    9
    Views
    1,014

    Re: what's wrong with my code

    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...
  3. Replies
    9
    Views
    1,014

    Re: what's wrong with my code

    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...
  4. Replies
    9
    Views
    1,014

    Re: what's wrong with my code

    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 ||...
  5. Replies
    9
    Views
    1,014

    Re: what's wrong with my code

    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...
Results 1 to 5 of 5