Java Swing Tutorial - Java DataFlavor .getTextPlainUnicodeFlavor ()








Syntax

DataFlavor.getTextPlainUnicodeFlavor() has the following syntax.

public static final DataFlavor getTextPlainUnicodeFlavor()

Example

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

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

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

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

The code above generates the following result.