Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

PropertyChangeListener error. Don't get it?

Thread view: 
michael.rygh@gmail.com - 12 Dec 2005 19:00 GMT
//quiz program

import java.applet.*;
import java.util.*;
import java.awt.*;
import java.awt.Color;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.applet.Applet;
import java.io.*;
import javax.swing.text.*;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;
import java.text.*;

public class quiz extends JApplet implements ActionListener,
PropertyChangeListener, Runnable
{

thats the start of my code.. here is the error i get..

quiz should be declared abstract; it does not define
perpertyChange(java.beans.PropertyChangeEvent in quiz.

I have this in another program of mine and it works fine.. I don't
understand why its not working.  Its probably something stupid but its
better I learn now. Thanks for your time!
michael.rygh@gmail.com - 12 Dec 2005 19:05 GMT
im retarded. simple logical error. i removed this.
Roedy Green - 12 Dec 2005 21:20 GMT
>quiz should be declared abstract; it does not define
>perpertyChange(java.beans.PropertyChangeEvent in quiz.

Several problems,

First quiz should be Quiz.

Second you did not quote the error verbatim with copy paste.  There is
no such thing as perpertyChange

Third you did not implement all the methods of PropertyChangeListener
with the exact method signature(s) with the correct spellings.  Copy
paste in the interface to your code or use an IDE that does that for
you.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.