Basically I need a field (for Swing) which lets user enter data if that specified data is not in the list provided in Combo-box. How to achieve this?
Basically I need a field (for Swing) which lets user enter data if that
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the “Editable Combo Box” on the swing tutorial.
Basically, you need to use
setEditable(true)for your combo box. From the API docs: