DataFlavor.stringFlavor has the following syntax.
public static final DataFlavor stringFlavor
In the following code shows how to use DataFlavor.stringFlavor field.
import java.awt.datatransfer.DataFlavor; // ww w. ja va 2 s . co m public class Main { public static void main(String[] args) { DataFlavor df = DataFlavor.stringFlavor; System.out.println (df.toString()); } }
The code above generates the following result.