×

Discussion Board

Results 1 to 2 of 2

Thread: Canvas problems

  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA
    Posts
    90

    Canvas problems

    Okay I am using the example framework in the:

    Guidelines for Game developers Using MIDP Devices version 2 feb 2003

    When I attempt to modify specific classes to sue extends Canvas instead of FullCanvas because I don't need ful screen access I get this error:

    This class must implement the inherited abstract method Displayable.paint(Graphics), but cannot override it since it is not visible from GameCanvas. Either make the type abstract or make the inherited method visible.

    Any clues of what I am missing?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    2
    I toyed around with that myself a bit and didnt have any problems. I guess that your class has a method like

    public void paint(Graphics g) {
    //do something
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×