JTextBox with Memory capability

Whenever I enter a character in a JTextBox , it should display

all the words that arepreviously entered into that JTextBox.

For example, assume that I already entered a word called "Table"

in a JTextBox and some time later I am coming back to the same

JTextField and entering the character 'T', now the JTextBox should automatically display the word "Table" and other words that are starting with the letter 'T'.

How can I get the above functionality?

[516 byte] By [Giritharana] at [2007-10-2 19:31:44]
# 1

If I am not wrong you are looking for autocomplete feature on JTextField. You can implement this feature by maintaining your own dictonary and writing customized document class. There are 3rd party components available with this feature too

In case if editiable JComboBox helps then refer http://forum.java.sun.com/thread.jspa?forumID=57&threadID=167852

skdagaa at 2007-7-13 21:19:15 > top of Java-index,Security,Event Handling...