These examples seem to assume that the list of available items is fairly small and fits in memory, and the lookup is quick and therefore safe to execute on the Swing Thread.
They seem to ignore the case where the lookup needs to do a database query, which therefore needs to be executed on a background thread.
To be fair this is probably not a fault of the toolkit but of the JComboBox API.
Is there anything out there that looks like a JComboBox (as per the chosen current look and feel) and allows autocompletion lookup on a background thread? |