event class

small changes in event class. extends jpanel