Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox

 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how I can make an editable JComboBox only allow the user to key 10 characters?
Any help is appreciated.
Thanks!
 
Wahid Sadik
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
to make a JCombobox..call 'setEditable(true)'....
about restricting to 10 character... sorry I cannot recall now... but in JTextField/JTextArea.. I used something like 'Document Listener' (plz check API) that might be applicable.. i will let u know next saturday
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!