From http://stackoverflow.com/questions/13649587/how-to-limit-the-editable-text-in-jcombobox