Example usage for java.awt.datatransfer DataFlavor setHumanPresentableName

List of usage examples for java.awt.datatransfer DataFlavor setHumanPresentableName

Introduction

In this page you can find the example usage for java.awt.datatransfer DataFlavor setHumanPresentableName.

Prototype

public void setHumanPresentableName(String humanPresentableName) 

Source Link

Document

Sets the human presentable name for the data format that this DataFlavor represents.

Usage

From source file:Main.java

public static void main(String[] args) {

    DataFlavor df1 = new DataFlavor("text/plain; charset=ASCII", "Plain ASCII text");
    df1.setHumanPresentableName("stringFlavor");

}