Java DataFlavor.toString()

Syntax

DataFlavor.toString() has the following syntax.

public String toString()

Example

In the following code shows how to use DataFlavor.toString() method.


// w  ww .j av a  2s .c  o m
import java.awt.datatransfer.DataFlavor;

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