Package org.openide.windows

Examples of org.openide.windows.TopComponent.grabFocus()


    /**
     * Obtain the scratch_padTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized scratch_padTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        win.grabFocus();
        if (win == null) {
            Logger.getLogger(scratch_padTopComponent.class.getName()).warning("Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof scratch_padTopComponent) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.