• Post Reply Bookmark Topic Watch Topic
  • New Topic

unexpected exception:please help  RSS feed

 
John Mclain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello there..

when i m running this code , i gets an error
Send_data is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
how to fix this error??




actually i m having a need to use the text entered in JTextField when user click the next button.
can i achieve this using without actionPerformed method??
if i must have to use the actionPerformed method then please help me with code snippet.

thanks in advance
 
Rob Spoor
Sheriff
Posts: 20903
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you added "implements ActionListener", you are required to implement the actionPerformed method.

Now you could implement that method, or just remove the "implements ActionListener" piece. You're not using the class as an action listener, so implementing it would be useless.
 
John Mclain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Mr Rob

i got the mistake i made.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!