posted 14 years ago
I have a JComboBox wiith name of countries in it.i want it to be editable.when the use will type initial few letters the items in JCombobox will get filtered.
i have managed to write the filtering code.
following code does the filtering of items as the user types in to the JCombobox it works fine.
my only problem is after selecting some item from popup menu when i press Enter it does not get set in the JComboBox ???
can i do it without making the my simple code too complicated??
Thanks in advance...
Dhiren Lodhia
SCJP 5.0 (93%)