This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JComboBox event handling question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox event handling question" Watch "JComboBox event handling question" New topic
Author

JComboBox event handling question

Dave Robbins
Ranch Hand

Joined: Sep 16, 2003
Posts: 131
Hello All

I have a situation where I have a JComboBox with several items in it
I want to take some actions before the user changes the selection
(save some stuff to database)
what is the proper event to handle to do this??
can anyone point me to a good writeup on understanding just what events happen when and in what order for Swing components??

TIA
Dave
Dave Robbins
Ranch Hand

Joined: Sep 16, 2003
Posts: 131
ahh,
implement a popupListener
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JComboBox event handling question