Java DataFlavor stringFlavor

Syntax

DataFlavor.stringFlavor has the following syntax.

public static final DataFlavor stringFlavor

Example

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


import java.awt.datatransfer.DataFlavor;
//  w  w  w.j a va  2s. c o m
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

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




















Home »
  Java Tutorial »
    java.awt.datatransfer »




Clipboard
ClipboardOwner
DataFlavor
Transferable