Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

JComboBox

hi i have used a Model for JCombobox because i need to have 2 comboboxes with identical data. This part works fine. What i don't like is when i select an item both comboboxes select same item. How can i have so that only one will be selected since model is shared ? Any thoughts ?

thanks.
0
vnd
Asked:
vnd
1 Solution
 
kylarCommented:
What you need to do is have 2 seperate models that contain the same data.  The item that is selected is a function of the model, so when one combobox selects an item, both comboboxes will think that item was selected. Create a second model and copy all the data into it.

Kylar
0
 
vndAuthor Commented:
i see , thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now