Java experiment source code graphical interface event processing mechanism experiment