I am developing a java desktop application
I want when some one starting to enter a character in textfield all the names starting from that character should shown in a list below
When he enter the second character search is based on 2 characters all names starting from that two charcters should be displayed in list user can select one
from list
How i achieve this thing in java (How to open drop down help)
You can listen for the KeyTyped event of the JTextField. And then use getText() to get the String typed. You can add a JComboBox and populate the entries to this drop down depending on your search criteria.
By the way- There's s Swing/AWT Forum where you can post queries related to Swing/AWT/JFace.