How can I find what event a JComponent
can send?
From JDK documentation is not so clear to find all the event an object sands.
For example a JButton
send an ActionEvent
but this is not listed into the API of the JButton
How can I find what event a JComponent
can send?
From JDK documentation is not so clear to find all the event an object sands.
For example a JButton
send an ActionEvent
but this is not listed into the API of the JButton
All of the events that can be sent by a component follow the same pattern. The component will have a method for each event which looks like addXXXXXListener(XXXX). Just look for the methods that start with "add" and end with "listener"