Java Swing Tutorial - Java DataFlavor imageFlavor








Syntax

DataFlavor.imageFlavor has the following syntax.

public static final DataFlavor imageFlavor

Example

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.