Re: Problem with JCombo box




srinivas.veeranki@xxxxxxxxx schreef:

Hi All,

Here i am getting the problem with JCombobox. Here i am taking 2 combo
boxes. each of them has 11 elements. They have set the initiall
selected items. If I select the first combo then i am setting
setSelectedIndex(0) for 2nd combo. In this , the scrollbar is not
moving to first element or blank element. From the next time onwords,
the scroll bar also moving to the first element. I need to put the
scroll bar at first element when ever i selected the combo box which is

set to first element or null element. Please help me regaurding
this....


Thanks in advance... Here i am giving the code which i tried....

< code snipped >


Thanks & Regards

Srinivas

As far a I can see, I'm not getting the problem you're having. The
second combo always selects and scrolls to the first element when the
first combo changes.

Regards,

Bart

.



Relevant Pages

  • Re: Problem with JCombo box
    ... the combo box is not moving to first element. ... selected items. ... the scroll bar also moving to the first element. ...
    (comp.lang.java.programmer)
  • Re: Problem with JCombo box
    ... U can see the problem while ur selecting the first combo... ... then observe in the 2nd combo... ... the scroll bar also moving to the first element. ...
    (comp.lang.java.gui)
  • Re: Problem with JCombo box
    ... vain, Can we solve this kind of bug? ... bug in the ComboBoxModel ... Here 2 nd combo box points to first element but the scroll bar of ... the combo box is not moving to first element. ...
    (comp.lang.java.programmer)
  • Re: Problem with JCombo box
    ... When I select the first combo the second combo points to the first element. ... selected items. ... the scroll bar also moving to the first element. ...
    (comp.lang.java.programmer)
  • Re: Problem with JCombo box
    ... Maybe it's some bug in the ComboBoxModel ... Here 2 nd combo box points to first element but the scroll bar of ... the combo box is not moving to first element. ...
    (comp.lang.java.programmer)