"history" for TextField

Hello,

I'd like to implement a text field that "remembers" previous entries and allows them to be selected, in the same manner as is commonly seen in many applications, such as browser address bars.

Can someone point me to any text on how this is done? I don't seem to be able to find anything ... but it's hard to know just what to search for, too.

Thanks.

mp

[395 byte] By [pdxlooiea] at [2007-10-3 3:39:32]
# 1
Just have an array of Strings that remembers what was entered into the JTextField.
CaptainMorgan08a at 2007-7-14 21:35:01 > top of Java-index,Desktop,Core GUI APIs...
# 2

> Just have an array of Strings that remembers what was

> entered into the JTextField.

Of course, saving the entries is not difficult. Creating a "dropdown" box that displays them is the issue. There could be a listener on the text field that compares each keystroke to the current list of entries.

Thanks.

mp

pdxlooiea at 2007-7-14 21:35:02 > top of Java-index,Desktop,Core GUI APIs...