static S getTextTrim(JTextComponent c) { ret trim(getText(c)); } // tested for editable combo box - returns the contents of text field static S getTextTrim(JComboBox cb) { ret cb.getEditor().getItem(); }