Master Tiger

Greenhorn
+ Follow
since May 23, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Master Tiger

Hey there Mark,
Thanks for being the only reply as of now.
As for my real name, it is as specified.
1. The event handler is ActionEvent and the listener is ActionListener. I have the method actionPerformed(ActionEvent ae) to capture the event on the JComboBox. It is in this method I set the list values for JComboboxs 2 & 3.
2. When the event is captured, I check which element in the first box is selected. Based on that, I use the removeAllItems() method to clear the boxes 2 & 3. Then I insert the approrpiate values.
Anything more, just let me know.
21 years ago
Hi,
I have a main JCombobox in which are stored some values. When a user clicks on a selection (jcbox.getSelectedItem()) in this JComboBox, two other JComboBoxes are to get some set of values.
The mystery is that I am able to set the values in the two other JComboxes, but the values are being repeated more than once. To counter this problem, I used the jcbox1.insertItemAt(<value>,<index> method.
The second mystery is that on usage of such a command, the first value in the list does not appear on the JComboBox.
The third mystery is that when I select any value in the second or third JCombobox, it does not appear on the top of the JCombobox.
Please help!
21 years ago