Package org.openquark.util.ui

Examples of org.openquark.util.ui.ImageTransferable


        g2d.translate(bounds.x - 1, bounds.y - 1);
        g2d.drawRect(0, 0, bounds.width, bounds.height);
        g2d.dispose();

        // Send this to the clipboard
        Transferable imageTransferable = new ImageTransferable(newImage);
        Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
        clipboard.setContents(imageTransferable, null);

        // For platforms which have a selection clipboard (such as X11), store the image there also
        clipboard = Toolkit.getDefaultToolkit().getSystemSelection();
View Full Code Here

TOP

Related Classes of org.openquark.util.ui.ImageTransferable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.