Java Swing Tutorial - Java DataFlavor .isFlavorSerializedObjectType ()


DataFlavor.isFlavorSerializedObjectType() has the following syntax.

public boolean isFlavorSerializedObjectType()


In the following code shows how to use DataFlavor.isFlavorSerializedObjectType() method.

/*from  ww  w .ja  v a 2 s. co  m*/
import java.awt.datatransfer.DataFlavor;

public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

    System.out.println (df.isFlavorSerializedObjectType ());

The code above generates the following result.