×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    can't override paint()

    I create a new class from javax.microedition.lcdui.canvas;
    but it tells me can't override paint()
    why?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere / Finland
    Posts
    201
    Hello,

    The paint() is an abstract methord defined in Canvas base class, The application must implement it in order to paint graphics on screen.

    Try to declare the methord as public void paint(Graphics g) may slove your problem.

    Regards,
    Kui

Posting Permissions

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