i have two comboboxs
how can i make this work i tried a lot but i couldn't :(:(:(:(
if i select item "A" so it should be removed from other combobox
combobox combobox2
A B
B C
C
COULD YOU PLEASE HELP ME :(
Printable View
i have two comboboxs
how can i make this work i tried a lot but i couldn't :(:(:(:(
if i select item "A" so it should be removed from other combobox
combobox combobox2
A B
B C
C
COULD YOU PLEASE HELP ME :(
can u put ur code here???
other wise who will provide u the whole code.
here is the code
jComboBox1 = new javax.swing.JComboBox();
jComboBox2 = new javax.swing.JComboBox();
setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", "C" }));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
}
});
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", "C" }));