Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ComboBoxEditor  RSS feed

Bartolo Almeda
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I want to be able to set the Document for the JTextField that show up when you set a JComboBos.setEditable(true). I try to do this but the only way that I found and did it was extending the javax.swing.plaf.metal.MetalComboBoxEditor and setting the document on the protected field editor. Do someone knows if there is a better way to do this? perphaps taking the implementation from javax.swing.plaf.basic.BasicComboBoxEditor and create my own class. I just don't want the reinvent the wheel.
Any suggestions.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!