Hello, can someone help me to figure out how to connect multiple combo boxes in
Java?
The thing is that I need like 5 combo boxes and every time you select something in the previous combo box, the list in the next combo box gets changed to the condition set in the previous combo box.
I found this example on then net, and implemented it in my program. Now this works just fine, but this example connects just 2 combo boxes by the means of if/else in that last method. Now I need to be able to connect more combo boxes in the similar way, but if i did it like this then I would end up writing a lot of if/else statements.
Please I need some help, this problem is bugging me for quite some time, and atm I am getting really desperate.