That's strange, as the code compile for me, and I receive error if I comment the super(source);
cannot find symbol symbol : constructor event object location class.java.util.EventObject. Looking to javadoc for EventObject I see the only constructor available for EventObject is *Constructor Summary* *EventObject<http://127.0.0.1:8082/resource/jar%3Afile%3A/D%3A/Javapassion/jdk-6u21-docs.zip%21/docs/api/java/util/EventObject.html#EventObject(java.lang.Object)> *(Object<http://127.0.0.1:8082/resource/jar%3Afile%3A/D%3A/Javapassion/jdk-6u21-docs.zip%21/docs/api/java/lang/Object.html> source) Constructs a prototypical Event. So, my understanding is that, extending EventObject, I need to initialize it, so I must call super(source); Can you check to ensuere in the code you are testing the class is really declared in this way : public class MyEvent extends EventObject { Regards, TheIrda 2010/8/26 robin <rbn...@googlemail.com> > This is the code and it is as supplied in 1029_javase_javabeans.zip. I > have re-started Netbeans and I still get the problem. I am using JDK > 1.6 (Default). > > > import java.util.EventObject; > > public class MyEvent extends EventObject { > > /** Creates a new instance of MyEvent */ > public MyEvent(Object source) { > super(source); > } > > public MyEvent(Object source, String myEventName) { > super(source); > this.myEventName = myEventName; > } > > private String myEventName; > > public String getMyEventName() { > return myEventName; > } > > public void setMyEventName(String myEventName) { > this.myEventName = myEventName; > } > > } > > -- > To post to this group, send email to > javaprogrammingwithpassion@googlegroups.com > To unsubscribe from this group, send email to > javaprogrammingwithpassion+unsubscr...@googlegroups.com<javaprogrammingwithpassion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en > -- To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en