I have a frame and a JWindow. In my frame I have a textfield, whenever I type something to the field, the window will appear with list of suggestions below the textfield. I used a keylistener to the field.
When I press the enter key on the list of suggestion in the window, the word that I select goes to the field.
Now the problem is that the window still appear, I want the window to disappear whenever I select a word.
Could someone got an idea about this?
Thanks..
Try this: