@Override
        public boolean importData(TransferHandler.TransferSupport dataInfo) {
            if (!dataInfo.isDrop()) {
                return false;
            }
            if (!dataInfo.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return false;
            }
            JList list = (JList) dataInfo.getComponent();
            DefaultListModel listModel = (DefaultListModel) list.getModel();
            JList.DropLocation dropLocation = (JList.DropLocation) dataInfo.getDropLocation();
            int index = dropLocation.getIndex();
            indiceFinal = index;
            boolean insert = dropLocation.isInsert();
            Transferable transfer = dataInfo.getTransferable();
            String datos;
            try {
                datos = (String) transfer.getTransferData(DataFlavor.stringFlavor);
            } catch (UnsupportedFlavorException | IOException e) {
                return false;
            }
            if (insert) {
                listModel.add(index, datos);
            } else {
                listModel.set(index, datos);
            }
            return true;
        }