I never really know what events I'm supposed to be listening for to
detect GUI events.
Besides the one issue with editable combo boxes, is there any real
difference between ActionPerformed and ItemStateChanged Java component
events? Should I ever use one instead of the other? It seems like I
can always use ActionPerformed.
Actually, that's not always true, I did see a weirdness with
JBuilder's JdbComboBox control where it wouldn't fire an
ActionPerformed event and I had to listen for a
"PopupMenuWillBecomeInvisible" event to detect when someone
manipulated a JdbComboBox.
What's the consensus on this subject?
...
Krick
xarax - 25 Nov 2003 15:00 GMT
> I never really know what events I'm supposed to be listening for to
> detect GUI events.
[quoted text clipped - 14 lines]
> ...
> Krick
I just read the Swing tutorial, which tells what events
can be fired by a particular component, and when such
events are appropriate for listening. The tut hasn't
failed me, yet.