File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to get the previously selected value in the combo box ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "How to get the previously selected value in the combo box ?" Watch "How to get the previously selected value in the combo box ?" New topic
Author

How to get the previously selected value in the combo box ?

manish basotia
Ranch Hand

Joined: Jan 12, 2004
Posts: 47
How to get the previoulsy selected value in a combobox. i WANT the current and the previously selected value of the combobox.
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

There is no inherit method for doing this in the API. You simply need to manually store the values in variables.
Jason Steele
Ranch Hand

Joined: Apr 25, 2003
Posts: 100
agreed, storing them in an ArrayList would work fine.


An egg is a chicken's house!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get the previously selected value in the combo box ?
 
Similar Threads
Select Object error
Select value
JComboBox in a JTable Cell
how do get selected value from combobox in html
JTable and combobox as the cellEditor