This is my code: I want to put it in a for loop to shorten the code. However, I don't know what to put inside the parenthesis because ComboBoxMo ...
This is my code: I want to put it in a for loop to shorten the code. However, I don't know what to put inside the parenthesis because ComboBoxMo ...
I have a Person [ ] with three Persons (p1,p2,p3). Person class has two attributes name and email. I want to add all names of Person[] in one JComboB ...
I have a list (ArrayList) with elements that I want to show in two JComboBox so both of them show the same elements but when you choose some elements ...
Am trying to implement a custom combobox model using MutableComboBoxModel interface which I hope to populate with dynamic data at runtime especially q ...
I have made this: And I have obtained this: How you can see, the selected item show his simple class name, but in the list... doesn't. How I can ...
I have created a class extending JComboBox. the model is set like this: The class implements a listener interface to listen for changes of another ...
I want to get name and id from database and add it to JCombobox. For this i used Item.java Now the problem is when I add object into combobox it ...
When inputting a new Student object inside my JTables I would like to hold all the localities/cities inside my JComboBox. Each city is stored inside a ...
What's wrong with my code here? I'm trying to insert data from the mysql into the combobox in netbean ...
I have a combo box and I update its model with a new DefaultComboBoxModel by calling setModel. However when I first created the combo box, I registere ...
I want to know ,how to add elements in the comboBox at the run-time? ...
Using I can update the whole JComboBox (list0)... but I want to add a few lines to it (need to have few different positions to choose from on my li ...
Hello I have the following setup. This are the 6 classes I have. Inside the BankApp I have an arraylist that stores all the person objects. The Ba ...
I binding an array to JComboBox like following: but I want bind array to JComboBox dynamically like following : How to do it? ...
I've created a ComboBoxModel class which extends AbstractListModel. I can add item to the combobox, but when I try to remove, I get an exception E ...
Having problems with the ComboBox, I have populated multiple ComboBoxes with the same model, but when I run my program and select a value from one Com ...
I am populating a combobox using a DefaultComboBoxModel and a custom Item. Each item contains an id and a name. I am iterating through a table, and ba ...
I have a JComboBox with a custom model which extends DefaultComboBoxModel. When I want to add an item to my combo box I add it to the model and repa ...
As we know the ComboBoxModel interface is used to created a class in witch we can specify how to relate a collections of objects (the model) with the ...
I have this problem in a Jframe. I use a JComboBox to display some choices for the user(from a datebase), he picks a choice and then after rerunning i ...