English, asked by rkvgmailcom6616, 1 year ago

What is the difference between actionlistener and itemlistener?

Answers

Answered by pulkitdube
1
Different GUI components have different events associated with it ( more or less and/or same or different , than/compared with other GUI components).ItemListener and ActionListener are interfaces , and when you invoke “ add____Listener“ , it require you to pass along appropriate interface (based on event applicable to GUI component).ItemListener id for drop downs or lists , and ActionListener is for Actions (like clicking , although there is MouseListenter interface for mouse events like mouse press/ release / click / etc).

pulkitdube: Hope it will help you. Please mark the answer as the Brainliest
Similar questions