Java Swing Tutorial - Java DataFlavor.getSubType()


DataFlavor.getSubType() has the following syntax.

public String getSubType()


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

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

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

    System.out.println (df.getSubType ());

The code above generates the following result.