I'm trying to create a textbox that appears under a JTextField with word suggestions. 

For example, if the user types "d", the textbox appears under the `jtextfield` with a suggested word like "dog" along with any other words that start with "d". 

I don't know how to do this and the solutions that I've researched have not worked. 

So far, I think I need to create an array list of words to compare to what the user types and then maybe have a `jcombobox` positioned under the text field and set visibility to true when the user types. What should I do? 

Additionally, I would like to have to it so the user can press the down/up key to select a suggested word and press enter and the jfield will be replaced with the suggested word. 

That can be added later though. Right now I just need a simple solution. 

Thanks to everyone who helps!