Package sun.awt.datatransfer

Examples of sun.awt.datatransfer.ToolkitThreadBlockedHandler


        SunDropTargetEvent event =
            new SunDropTargetEvent(component, SunDropTargetEvent.MOUSE_ENTERED,
                                 x, y, dispatcher);

        ToolkitThreadBlockedHandler handler =
            DataTransferer.getInstance().getToolkitThreadBlockedHandler();
        handler.lock();
        try {
            // schedule callback
            SunToolkit.postEvent(SunToolkit.targetToAppContext(component),
                event);

            while (!dispatcher.isDone()) {
                handler.enter();
            }
        }
        finally {
            handler.unlock();
        }

        // return target's response
        return dispatcher.getReturnValue();
    }
View Full Code Here


        SunDropTargetEvent event =
            new SunDropTargetEvent(component,
                                 SunDropTargetEvent.MOUSE_EXITED,
                                 0, 0, dispatcher);

        ToolkitThreadBlockedHandler handler =
            DataTransferer.getInstance().getToolkitThreadBlockedHandler();
        handler.lock();
        try {
            SunToolkit.postEvent(SunToolkit.targetToAppContext(component),
                event);

            while (!dispatcher.isDone()) {
                handler.enter();
            }
        }
        finally {
            handler.unlock();
        }
    }
View Full Code Here

        SunDropTargetEvent event =
            new SunDropTargetEvent(component,
                                 SunDropTargetEvent.MOUSE_DRAGGED,
                                 x, y, dispatcher);

        ToolkitThreadBlockedHandler handler =
            DataTransferer.getInstance().getToolkitThreadBlockedHandler();
        handler.lock();
        try {
            SunToolkit.postEvent(SunToolkit.targetToAppContext(component),
                event);

            while (!dispatcher.isDone()) {
                handler.enter();
            }
        }
        finally {
            handler.unlock();
        }

        // return target's response
        return dispatcher.getReturnValue();
    }
View Full Code Here

TOP

Related Classes of sun.awt.datatransfer.ToolkitThreadBlockedHandler

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.