Results 1 to 2 of 2
  1. #1
    berkeley is offline Member
    Join Date
    Jun 2010
    Posts
    6
    Rep Power
    0

    Default what does this error method mean?

    and how do I fix it?

    File: /Users/berkh/Desktop/untitled folder/tess/Main.java [line: 5]
    Error: Main is not abstract and does not override abstract method keyReleased(java.awt.event.KeyEvent) in java.awt.event.KeyListener

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,534
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by berkeley View Post
    and how do I fix it?

    File: /Users/berkh/Desktop/untitled folder/tess/Main.java [line: 5]
    Error: Main is not abstract and does not override abstract method keyReleased(java.awt.event.KeyEvent) in java.awt.event.KeyListener
    Your class said that it implements the KeyListener interface but it doesn't have a keyReleased( ... ) method implementation. Your class either needs to be an abstract class or it has to implement all methods from that interface. The compiler is a real nitpicker when it comes to that (and rightly so) ...

    kind regards,

    Jos

Similar Threads

  1. No Such Method Error - simple
    By n00b in forum New To Java
    Replies: 9
    Last Post: 05-04-2010, 04:05 PM
  2. Non-static method error
    By Lingerz in forum New To Java
    Replies: 1
    Last Post: 09-21-2009, 04:56 PM
  3. Getting error when using recrusive method
    By jurka in forum New To Java
    Replies: 10
    Last Post: 02-13-2009, 03:15 AM
  4. Replies: 1
    Last Post: 02-10-2009, 10:03 AM
  5. Error with getString() method in
    By trivektor in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-14-2008, 06:30 PM

Posting Permissions

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