I'm having trouble getting a basic JComboBox control to drop down and display its contents for selection if its got 3 or less elements. If it contains 4 then it drops down as expected.
I say basic, as all i do is create the JComboBox by passing it a vector.
JComboLocation = new JComboBox(v);
it then just gets added to a gridbag layout;
buildConstraints(constraints,1,11,1,1,95,5);
gridBag.setConstraints(JComboLocation,constraints);
textPanel.add(JComboLocation);
The elements are in the combo. Giving the control focus and using the arrow keys cycles through the list content as you would expect.
Does anyone know why the combo box is displaying this behaviour, and how to fix it ?
Thanks
I say basic, as all i do is create the JComboBox by passing it a vector.
JComboLocation = new JComboBox(v);
it then just gets added to a gridbag layout;
buildConstraints(constraints,1,11,1,1,95,5);
gridBag.setConstraints(JComboLocation,constraints);
textPanel.add(JComboLocation);
The elements are in the combo. Giving the control focus and using the arrow keys cycles through the list content as you would expect.
Does anyone know why the combo box is displaying this behaviour, and how to fix it ?
Thanks