ya I totally agree with what you said, but the listener registration and removal methods also follow Javabeans naming standard(i.e. camelCase) right ..??
This is the Paragraph from that topic.......
Second, the JavaBean spec supports events, which allow components to notify each other when something happens. The event model is often used in GUI applications when an event like a mouse click is multicast to many other objects that may have things to do when the mouse click occurs. The objects that receive the information that an event occurred are called listeners. For the exam, you need to know that the methods that are used to add or remove listeners from an event must also follow JavaBean naming standards: JavaBean Listener Naming Rules 1. Listener method names used to "register" a listener with an event source must use the prefix add, followed by the listener type. For example, addActionListener() is a valid name for a method that an event source will have to allow others to register for Action events.
2. Listener method names used to remove ("unregister") a listener must use the prefix remove, followed by the listener type (using the same rules as the registration add method).
3. The type of listener to be added or removed must be passed as the argument to the method.
For the listner case..
Is it that " add " prefix should be followed by some Listener nameonly
as size is not a listener type.
Please give your suggestions... [ April 06, 2007: Message edited by: Hardik Raja ]
If you check the K & B errata link at the top of this page, you will see that this problem is referenced. It should be made clear that addXXXListener and removeXXXListener are the correct conventions. So addSize is incorrect usage. [ April 06, 2007: Message edited by: Barry Gaunt ]