I read that a JButton
implements ItemSelectable
and into documentation it has the method addItemListener
so I can argue that it can generate an ItemEvent
... but when I register with a JButton
(but also for a JMenuItem
) that interface the event is not rised?
Why?
I understand that if into docs is reported that a component has an add....Listener it means that it support that event... but for experience isn't often so...
What's the truth?