}
public static DataFlavor villageDataFlavor = new DataFlavor(VillageTransferable.class, "Village");
public static DataFlavor[] supportedFlavors = {villageDataFlavor, DataFlavor.stringFlavor};
@Override
public DataFlavor[] getTransferDataFlavors() {
<BUG>return (DataFlavor[]) supportedFlavors.clone();
}</BUG>
@Override
public boolean isDataFlavorSupported(DataFlavor flavor) {
return (flavor.equals(villageDataFlavor) || flavor.equals(DataFlavor.stringFlavor));

}
public VillageTransferable(List<Village> pVillage) {
villages = pVillage;
}
public static DataFlavor villageDataFlavor = new DataFlavor(VillageTransferable.class, "Village");
public static DataFlavor[] supportedFlavors = {villageDataFlavor, DataFlavor.stringFlavor};
@Override
public DataFlavor[] getTransferDataFlavors() {
return supportedFlavors.clone();
}
@Override
public boolean isDataFlavorSupported(DataFlavor flavor) {
return (flavor.equals(villageDataFlavor) || flavor.equals(DataFlavor.stringFlavor));
