Hi. I have a JComboBox and I am using the Windows L&F. I click on the arrow to extend the drop-down list, and when I click on the scroll bar the drop down list disappears. Why won't the ComboBox let me use the scroll bar? Has anyone else experienced this problem?
hi, It seems that you have missed out something. Try it once again right from the scratch. Select a combo, set its maximum row count (say at 3). implement your code to insert values in combo. and run it. i don't think it will give any problem. mail back for confusion.
I tried it again from scratch and it is still doing the same thing. I am not using a Layout Manager and I am setting the bounds manually. Do you think that might have something to do with it? It's like when I click the scrollbar on the JComboBox drop-down menu, the control thinks I have clicked off of it. Do you think it has anything to do with me using the Windows Look And Feel? When I use the default Java Look And Feel, the scrollbar on the combobox works fine. I am still confused.
Michael, Are you executing any event code handling at all when you click on the scrollbar? Even if you think you are performing logical event handling something may be amiss. Also what OS are you running on? I have seen something similar while running on the Windriver operating system and it was a bug in their Java EVM. Also, on some operating systems you can't run the Windows Look and Feel. Joe Crew
I am not doing any event handling yet on the ComboBox. I am running Windows 2000. The code that implements the ComboBox is pretty straight-forward. I have it at its most basic implentation. Any other ideas on why this might be happening?