> 
> **Possible Duplicate:**  
> 
> [How to list suggestions to when typing inside the text field](https://stackoverflow.com/questions/6674462/how-to-list-suggestions-to-when-typing-inside-the-text-field) 
> 
> 
> 

Is there any way to get predictive text in JTextField in java swing? Like if i want to get the name of the city from the user, then it should predict the city.