Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

ActionPerformed vs ItemStateChanged

Thread view: 
Krick - 25 Nov 2003 08:24 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.