public boolean canImport(JComponent comp,DataFlavor[] flavors){
  JTextComponent c=(JTextComponent)comp;
  if (!(c.isEditable() && c.isEnabled())) {
    return false;
  }
  return (getImportFlavor(flavors,c) != null);
}

public boolean canImport ( JComponent comp , DataFlavor [ ] flavors ) { JTextComponent c = ( JTextComponent ) comp ; if ( ! ( c . isEditable ( ) && c . isEnabled ( ) ) ) { return false ; } return ( getImportFlavor ( flavors , c ) != null ) ; }
this method indicates if a component would accept an import of the given set of data flavors prior to actually attempting to import it .
