Package com.alee.extended.drag

Examples of com.alee.extended.drag.ImageDragHandler


        ImageIcon i1 = loadIcon ( "1.jpg" );
        ImageIcon i2 = loadIcon ( "2.jpg" );
        ImageIcon i3 = loadIcon ( "3.jpg" );

        WebImage image1 = new WebImage ( i1 );
        image1.setTransferHandler ( new ImageDragHandler ( image1, i1 ) );

        WebImage image2 = new WebImage ( i2 );
        image2.setTransferHandler ( new ImageDragHandler ( image2, i2 ) );

        WebImage image3 = new WebImage ( i3 );
        image3.setTransferHandler ( new ImageDragHandler ( image3, i3 ) );

        GroupPanel imageGroup = new GroupPanel ( 4, image1, image2, image3 );


        WebLabel dragLabel = new WebLabel ( "Try dragging images into fields below", loadIcon ( "drag.png" ), WebLabel.CENTER );
View Full Code Here

TOP

Related Classes of com.alee.extended.drag.ImageDragHandler

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.