Maneesh,
Thanks for your reply. Yes, I am writing a custom component and the component need to recognise mouse click and response to the mouse in some special way. But one major concept I'm still not able to understand is that it is always said that the component generate the events (be it mouse, actionEvent or custom event). However, how it is possible for a component, written in
Java, generate a Mouse Event ? For example, in Windows, the mouse click is controlled by Window device driver and when I click on an AWT component, it should be Windows that generate the mouse event and notify my component about that. How this map into the statement that the component generates a mouse event?
The second question is about the higher level event based on the mouse event, say ActionEvent of a button. It looks like it is my custom component, after RECEIVING the mouse click from the OS, to generate it. But where should I place the ActionEvent generation code in my customer component?