Compile error for EventObject

import java.util.EventObject;

publicclass DataEventextends EventObject{

public DataEvent(){}

}

when i compile, it gives error like the following:

Eventobject(java.lang.object) in java.util.Eventobject can not be applied to ()

could anybody help me please?

Tanx

[581 byte] By [nerdEvera] at [2007-11-27 11:21:18]
# 1

EventObject's constructor takes a 'source' parameter. It doesn't have a no-args constructor. So you have to call super(source) for some Object source, which should probably be provided to DataEvent's constructor.

ejpa at 2007-7-29 14:47:52 > top of Java-index,Core,Core APIs...
# 2

Tanx a lot ,it works

really appreciate your quick help

nerdEvera at 2007-7-29 14:47:52 > top of Java-index,Core,Core APIs...