when we talk of GUI,we say that whenever a user performs any action i.e presses - releases a button or press any key or mouse motion,it is an event which is represented in
java as event object. I am confused about how to classify these events, whether it's an ActionEvent or ItemEvent or WindowEvent,MouseEvent...etc..etc???
when we click on 'button' component, it generates Actionevent and we implement ActionListener interface, but if we click on checkbox ,we implement ItemListener since it generates ItemEvent, why so? I'm so confused...!!!