Do you mean you want to create a JTextField for user input that has the ability to auto-complete or offer completion suggestions while the user types? If so, the program will monitor each keystroke and look for possible completions from a list of possibilities, offering them to the user in a selectable popup of some sort. You may find suggestions of how to do this on the Internet.