Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make choice editable?

 
da changtui
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
with a choice,we can select a option from a choice's dropdown list,but it is not editable,i am wondering how to make it editable,please help me.
and then how to limit input String's length?
Help
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you be a little more specific on what you mean? Maybe also give an example of how you are using this. Someone may be able to help you then...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, da changtui!
As this is a GUI-related question, I'm moving this to the Swing / JFC / AWT forum, where they just love to get all messy with that GUI stuff...
 
Maarten Vergouwen
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you want to have a JComboBox.
You can set its properties so that it is editable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic