Hi all, I started to look into event handlers, and there is something I would like to ask, sorry if this is a silly one. I can see that different Java components generate different events when the user interacts with them, but when it comes down to 1)which interface the class that represents the event handler implements (ActionListener,ItemListener etc) and 2) what type of event is generated (ActionEvent, ItemEvent etc), how do I know which one to use? I mean, so far I know that if I want to implement event handling for, say, a textField, the inner class (or anonymous one which I haven't looked into as yet) implements the ActionListener interface and that the event passed on to the class method is and ActionEvent. But how do I know what each java component does? "API" I hear you saying, and well, "To an extent" I'd reply. If I have a look in the API for textField I have a list as long as my arm of methods, classes, etc etc http://docs.oracle.com/javase/7/docs/api/java/awt/TextField.html so how do I actually find what I want, as in which event does it trigger, how do I register the event handler? Or is it something that with time I will just know?