Re: Problem with JCombo box



Hi !

This problem will be happening only at first time only... If u observe
it ,,,, U can see the problem while ur selecting the first combo...
then observe in the 2nd combo... U will get tht problem...

Bart Cremers wrote:

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

  • Having trouble with a RadioButtonList control
    ... try as I might this control always seems to ... be returning the first element of the control as the "selected" item even ... though I am selecting the second element. ... mcad, mcdba, mcse+i ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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
    ... selected items. ... 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
    ... 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)