DataFlavor.isFlavorTextType() has the following syntax.
public boolean isFlavorTextType()
In the following code shows how to use DataFlavor.isFlavorTextType() method.
//from w w w . j a v a2s . c o m import java.awt.datatransfer.DataFlavor; public class Main { public static void main(String[] args) { DataFlavor df = DataFlavor.stringFlavor; System.out.println (df.isFlavorTextType ()); } }
The code above generates the following result.