Package java.util

Class EventObject

    • Field Detail

      • source

        protected transient Object source
    • Constructor Detail

      • EventObject

        public EventObject​(Object source)
        Constructs a new instance of this class.
        Parameters:
        source - the object which fired the event.
    • Method Detail

      • getSource

        public Object getSource()
        Returns the object which fired the event.
      • toString

        public String toString()
        Returns the string representation of this EventObject.
        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.