Java Swing Tutorial - Java DataFlavor imageFlavor


DataFlavor.imageFlavor has the following syntax.

public static final DataFlavor imageFlavor


In the following code shows how to use DataFlavor.imageFlavor field.

/*w ww.  j a  va  2  s.  co  m*/
import java.awt.datatransfer.DataFlavor;

public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.imageFlavor;

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

The code above generates the following result.