Java Swing Tutorial - Java DataFlavor javaFileListFlavor








Syntax

DataFlavor.javaFileListFlavor has the following syntax.

public static final DataFlavor javaFileListFlavor

Example

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

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

public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.javaFileListFlavor;

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

The code above generates the following result.