Solved

JComboBox

Posted on 2001-07-03
2
337 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

810 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