Module ij
Package ij.io

Class DragAndDropHandler

    • Constructor Detail

      • DragAndDropHandler

        public DragAndDropHandler​(JFileChooser jFileChooser)
        Given a JFileChooser 'fc', this is how to use this class:
             fc.setDragEnabled(true);
             fc.setTransferHandler(new DragAndDropHandler(fc));
         
    • Method Detail

      • isSupportedTransferFlavor

        public boolean isSupportedTransferFlavor​(DataFlavor flavor)
        Returns whether this transfer flavor is supported. We support File Lists and Strings (plain or as list of URLs).