@Override public Object getViewValue() { Object o = null; String inputText = input.getText(); if (inputText.length() > 0) { try { o = new File(inputText); } catch (Exception e) { invalidateValue(); } } return o; }
@Override public void setViewValue(Object o) { input.setText(o.toString()); input.setCaretPosition(input.getText().length()); input.setToolTipText(o.toString()); }