-
JComboBoxes & Events
Hello all.
I'm trying to figure out how to get a JTextField contents to change, based on what the user's current JComboBox selection is. I can get it to do it with JCheckBoxes, but I'm not understanding how to get the JComboBox to change it? I managed to get my JComboBox to change at one point, but it just continued to add (i'm changing numbers in a box) the numbers together, instead of just replacing them.
Do I use ItemListener or ActionHandler for this type of activity?
-
Re: JComboBoxes & Events
Without more details and code its tough to provide specific suggestions, but I'd recommend looking into adding an ItemListener to your JComboBox to list for changes in JComboBox selections.
-
Re: JComboBoxes & Events
-
Re: JComboBoxes & Events
Hi kevinGreen!
u can easily achieve that if you are a netbeans user. There is a tab under GUI design that is called Connection of events.