Enable stringFlavor of Transfersupport in Java Swing
问题 I am implementing a functionality to Drag and Drop the Textattribute of JLabels into the cells of a JTable. So I've created a custom TransferHandler for the table. But every call of support.isDataFlavorSupported(DataFlavor.stringFlavor) returns false How can I make sure that my TransferHandler is able to import Strings? Here is the source public class TableHandler extends TransferHandler { private static final long serialVersionUID = 1L; @Override public boolean canImport(TransferSupport