Java DataFlavor plainTextFlavor

Syntax

DataFlavor.plainTextFlavor has the following syntax.

@Deprecated 
public static final DataFlavor plainTextFlavor

Example

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


//  w  w  w . ja  v a 2  s .  co m
import java.awt.datatransfer.DataFlavor;

public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.plainTextFlavor;

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




















Home »
  Java Tutorial »
    java.awt.datatransfer »




Clipboard
ClipboardOwner
DataFlavor
Transferable