Hey people, I have this weird problem with my JComboBox.
I have the autocomplete program that displays the best match so far in a combo box's text box, and makes a selection in a combo box. Here is how the text box is defined. JTextComponent jtc = (JTextComponent)ManagedComboBox.getEditor().getEditorComponent(); So that when the user clicks on it, it scrolls to the selected item. However, when I click on the combo box the first time, it does not seem to scroll to the selected item, but if I scroll manually, I see the item I need highlighted as selected. Then if I unclick and click on the combo box the second time, it works correctly -- i.e., it scrolls and I see the selected item without additional scrolling. Anyone has any idea about this? Many thanks. Lenny, New York. _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
