Java Code Examples for javax.swing.RootPaneContainer#setGlassPane()

The following examples show how to use javax.swing.RootPaneContainer#setGlassPane() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockingAction.java    From CodenameOne with GNU General Public License v2.0 6 votes vote down vote up
public final void run() {
    try {
        exectute();
        SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
                afterComplete();
            }
        });
    } catch(Exception err) {
        err.printStackTrace();
    } finally {
        t.stop();
        RootPaneContainer r = (RootPaneContainer)ResourceEditorApp.getApplication().getMainFrame();
        r.setGlassPane(glassPane);
    }
}
 
Example 2
Source File: BaseForm.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public BaseForm() {
    RootPaneContainer r = (RootPaneContainer)ResourceEditorApp.getApplication().getMainFrame();
    r.setGlassPane(new JLabel());
}