Click to See Complete Forum and Search --> : [RESOLVED] combo box and variables


ajkiwi88
08-02-2007, 03:38 AM
i know how to create and display a fixed combo box as well as add the action listener but how do i take the item selected by the user and put it into a variable?

many thanks
andy

mickscool
08-03-2007, 09:30 AM
Check this link from sun website:

http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

they have getSelectedItem() method that you need to use..