I have created two select list (Combo box). BankName and BranchName.
BankName is using LOV with query to display bankname.
This is working fine.
Now when i select Bank name i want to display selected branches of that bank in Branchname combo.How to display values in second combo basis on first combo value click.It should refresh after click
Please reply
080346
0
Light Poster
Recommended Answers
Jump to Postadd ActionListener to jcbBankName
inside ActionPerformed method:
- check jcbBankName.getSelectedItem()
- force new model - jcbBranchName.setModel(...your model..relate to checked value)in the constructor of your class, do not forget to set default values for both the comboboxes
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.