public boolean importData(JComponent c, Transferable t) { JList listaDestino = (JList) c; if (listaDestino == origem) { return false; } if (canImport(c, t.getTransferDataFlavors())) { try { Sistema[] sistemas = (Sistema[]) t.getTransferData(SistemaTransferable.getSistemaDataFlavor()); ModeloListaObjetosGrupo modelo = (ModeloListaObjetosGrupo) listaDestino.getModel(); modelo.adicionarSistemas(sistemas); return true; } catch (UnsupportedFlavorException ufe) { System.out.println("importData: unsupported data flavor"); } catch (IOException ioe) { System.out.println("importData: I/O exception"); } } return false; }