Results 1 to 5 of 5

Thread: [RESOLVED] a error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [RESOLVED] a error

    Code:
    remoteadmin.java:22: remoteadmin is not abstract and does not override abstract
    method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
    public class remoteadmin extends JFrame implements ActionListener {
           ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Tryk på en vilkårlig tast for at fortsætte . . .
    i have no idea how to fix this, i've been trying now for 1 hour and well... i can't find a way to fix it.
    Last edited by Justa Lol; Jan 10th, 2009 at 10:02 AM.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: a error

    You're implementing the interface ActionListener without implementing it's abstract method "actionPerformed"
    you need to implement that method
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: a error

    ooh, why did i forget:

    Code:
    public void actionPerformed(ActionEvent evt) {}
    thank you ComputerJy

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [RESOLVED] a error

    No problem, btw.. you're implementing this interface for a reason. If you're not using it, remove it
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: [RESOLVED] a error

    i'm using it, i was just adding this class to my main file... so i forgot adding the code for buttons in it...

Posting Permissions

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



Click Here to Expand Forum to Full Width