Set editable JComboBox's max text length
I need to limit editable JComboBox's maximum allowed text length to 50 characters. The solutions I have found are those:
2. IBM variant: publib.boulder.ibm.com/iseries/v5r2/ic2928/info/rzahh/javadoc/com/ibm/as400/ui/framework/java/TextDocument.html
// JComboBox can be cast to a JTextField like this
As you can see, those are rather sloppy and they just don't seem like the best variants to me.