On Aug 25, 1:25 pm, robin <[email protected]> wrote:
> I find the code for MyEvent.java does not compile. The two lines with
> "super(source);". I am using Netbeans IDE 6.9 and get the error
>
> constructor Object in class java.lang.Object cannot be applied to
> given types required: no arguments found: java.lang.Object
This is very strange, I don't see anything in the code which could not
compile.

>From what I read googling, it may disappear:
- restarting NetBeans
- put source/binary (in project Properties) jdk 1.5 and encoding utf-8

You may try it.

>
> I can comment out the two lines or remove the parameter to get the
> example to run. What is the purpose of super?
It simply calls the constructor of EventObject (the parent class of
MyEvent class as MyEvent class extends EventObject) with the source
Object.

Michèle Garoche

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to