boolean (JComponent comp, Transferable t) { try { String value = ObjectUtils.tryCast(t.getTransferData(DataFlavor.stringFlavor), String.class); if (value == null) return false; myFilter.setFilterText(value); return true; } catch (IOException | UnsupportedFlavorException e) { return false; } }