Solved

JComboBox

Posted on 2001-07-03
2
340 Views
Last Modified: 2010-04-16
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
Comment
Question by:vnd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
kylar earned 25 total points
ID: 6249630
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
 

Author Comment

by:vnd
ID: 6249633
i see , thanks.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question