javax.swing.RootPaneContainer#setGlassPane ( )源码实例Demo

下面列出了javax.swing.RootPaneContainer#setGlassPane ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: CodenameOne   文件: BlockingAction.java
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);
    }
}
 
源代码2 项目: CodenameOne   文件: BaseForm.java
public BaseForm() {
    RootPaneContainer r = (RootPaneContainer)ResourceEditorApp.getApplication().getMainFrame();
    r.setGlassPane(new JLabel());
}
 
 同类方法