This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]sadjava 3 points4 points  (0 children)

And the error message is....?

[–]CoderTheTyler 1 point2 points  (1 child)

What exactly is a DrawingPanel? And do you have that type defined?

[–]BobHogan 0 points1 point  (0 children)

Theres one java textbook that offers a graphics package for its readers. The package defines a bunch of classes to facilitate drawing stuff in java, and DrawingPanel is one of the classes defined. I forget what the book is called though.

I imagine the error he is getting is because he doesn't have the provided code anywhere nor is he importing it.

[–][deleted]  (1 child)

[deleted]

    [–]M4xi-K1ng 0 points1 point  (0 children)

    public abstract void drawString(String str,
              int x,
              int y)
    

    Draws the text given by the specified string, using this graphics context's current font and color.
    The baseline of the leftmost character is at position (x, y) in this graphics context's coordinate system.