Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!