I have three combo boxes, i am trying to update the Values of second combo box depending on the Value of First Combo box, Initially second and third JComobo Boxes are set not to be enabled. for ex: if 'A' is selected in first Combo Box then Second should get enabled and will display values related to 'A'.
I am having problem in enabling the Second Combo Box, I have attached Action Listener to both the Combo Box
> i am trying to update the Values of second combo box depending on the Value of First Combo box,
use the comboBox's model to do that
i.e. whatever's selected in combo1 creates a 'model' of items for display in combo2,
that model is then set as combo2's model.
for enabling/disabling have you thought of displaying no items in combo2 and combo3,
then setting their respective models, on selection of combo1 item.
(you would need to change from FlowLayout to perhaps GridLayout,
otherwise their sizes will look weird, and then change when models set)