Autocomplete combobox usability under Aqua look and feel
Greetings Swing scientists ---
There's a problem with editable JComboBoxes on the Mac.
When the list of options is small (ie. < 10), the popup obscures the
editor so you can't see the text being typed. This also happens
for any number of options when the combo box is near the bottom
of the screen.
Although this problem applies to all JComboBoxes, it's particularly
annoying for those with AutoComplete because then the
popup is opened automatically.
I've created a tiny webstart app that demonstrates the problem,
plus a fix! If you're running a Mac, try typing "Oceana" into either
combobox and compare which one is more usable:
Please accept this as a contribution to JXComboBox and
AutoCompleteDecorator classes. As always, I grant full copyright.
PS - I found the problem while working with our own autocomplete
code for Glazed Lists and I figured I might as well share it!
Our autocomplete behaves similar to yours, except that it also filters
like the Firefox address bar. http://publicobject.com/glazedlists/