Java DataFlavor.isFlavorTextType()

Syntax

DataFlavor.isFlavorTextType() has the following syntax.

public boolean isFlavorTextType()

Example

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


//from   w  w w  .j a  va2s  . co m

import java.awt.datatransfer.DataFlavor;

public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

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




















Home »
  Java Tutorial »
    java.awt.datatransfer »




Clipboard
ClipboardOwner
DataFlavor
Transferable