Constructs a PrintEvent object.paramsource is the source of the eventthrowsIllegalArgumentException if source is null. super(source);
source
null
super(source);
returna message describing the event return ("PrintEvent on " + getSource().toString());
return ("PrintEvent on " + getSource().toString());