image To Clipboard - Java Native OS

Java examples for Native OS:Clipboard

Description

image To Clipboard

Demo Code


//package com.java2s;

import java.awt.Toolkit;

import java.awt.datatransfer.Transferable;

public class Main {
    public static void imageToClipboard(Transferable transferableImage) {
        Toolkit.getDefaultToolkit().getSystemClipboard()
                .setContents(transferableImage, null);
    }/*  www. j  a va 2 s .c  om*/
}

Related Tutorials