This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

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


GenRocket - Experts at Building Test Data
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to get the previously selected value in the combo box ?
 
It's not a secret anymore!