Log.log( Log.TRACE, MODULE, "rejecting drop: javaFileListFlavor is not supported for this data" );
Log.log( Log.LEVEL_TRACE, MODULE, "rejecting drop: javaFileListFlavor is not supported for this data" );
	public synchronized void drop( DropTargetDropEvent dropTargetDropEvent ) {		Log.log( Log.TRACE, MODULE, "drop - dtde" );				if ( !isEnabled() ) {			// for some reason this crappy system doesn't take rejectDrag for an answer			return;		}				try {			Transferable tr = dropTargetDropEvent.getTransferable();			if ( tr.isDataFlavorSupported( DataFlavor.javaFileListFlavor ) ) {				dropTargetDropEvent.acceptDrop(						DnDConstants.ACTION_COPY_OR_MOVE );				java.util.List fileList = (java.util.List)						tr.getTransferData( DataFlavor.javaFileListFlavor );				/* recursively add contents of directories */				try {					fileList = expandDirectories( fileList );				} catch ( IOException ioe ) {					Log.log( Log.ERROR, MODULE, "i/o exception listing dirs in a drop" );					Log.logStack( Log.ERROR, MODULE );					JOptionPane.showMessageDialog(							null,							grRes.getString(MODULE, "imgError"),							grRes.getString(MODULE, "dragError"),							JOptionPane.ERROR_MESSAGE );				}				//thanks John Zukowski				Point dropLocation = dropTargetDropEvent.getLocation();				int listIndex = snapIndex( (int) dropLocation.getY() );				Log.log( Log.TRACE, MODULE, "Adding new image(s) to list at index " + listIndex );				mf.addPictures( (File[]) fileList.toArray( new File[0] ), listIndex );				dropTargetDropEvent.getDropTargetContext().dropComplete( true );			} else {				Log.log( Log.TRACE, MODULE, "rejecting drop: javaFileListFlavor is not supported for this data" );				dropTargetDropEvent.rejectDrop();			}		} catch ( IOException io ) {			io.printStackTrace();			dropTargetDropEvent.rejectDrop();		} catch ( UnsupportedFlavorException ufe ) {			ufe.printStackTrace();			dropTargetDropEvent.rejectDrop();		}	}