Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-26-2005, 04:00 PM   #1 (permalink)
aaronkupen's Avatar
 
Monster Techie

Join Date: Sep 2005

Location: Boston, MA

Posts: 1,791

aaronkupen is on a distinguished road

Send a message via AIM to aaronkupen Send a message via Yahoo to aaronkupen Send a message via Skype™ to aaronkupen
Default java applet problem

Does anyone know what this error message means?


C:\Documents and Settings\Aaron\My Documents\Java\Project1.java:13: Project1 is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class Project1 extends Applet implements ActionListener
^

If you want the code just reply and Ill send it.
__________________
Lenovo Thinkpad T60
Intel Core 2 Duo T7200 @ 2.00 Ghz
2 GB DDR-2 memory
ATI Mobility Radeon x1400
60 GB 7200 rpm Hard Drive
Windows Vista Business SP1 32 Bit
aaronkupen is offline  
Old 10-26-2005, 05:34 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

http://www.daniweb.com/techtalkforums/post58331.html

To implement an interface (in this case ActionListener or ItemListener), you must write all the functions that the interface provides. One such function you're missing is actionPerformed(ActionEvent). If you put this function into your ChatClientApplication class, it will stop complaining.

Put this in your class:

Code:

public void actionPerformed(java.awt.event.ActionEvent e)
{
}

Hope this helps!


Ed
office politics is offline  
Old 10-26-2005, 05:38 PM   #3 (permalink)
aaronkupen's Avatar
 
Monster Techie

Join Date: Sep 2005

Location: Boston, MA

Posts: 1,791

aaronkupen is on a distinguished road

Send a message via AIM to aaronkupen Send a message via Yahoo to aaronkupen Send a message via Skype™ to aaronkupen
Default

Yeah that helped, but on my school computer, i didnt have to put the java.awt.event. before action event. Any ideas why?
__________________
Lenovo Thinkpad T60
Intel Core 2 Duo T7200 @ 2.00 Ghz
2 GB DDR-2 memory
ATI Mobility Radeon x1400
60 GB 7200 rpm Hard Drive
Windows Vista Business SP1 32 Bit
aaronkupen is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On