ExtJFrame.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:AppWoksUtils 作者:
/**
 * 
 */
private void macSpecials() {
    if (CrossSystem.isMac()) {
        addWindowStateListener(new WindowStateListener() {

            private boolean oldVisibleState = true;

            @Override
            public void windowStateChanged(WindowEvent e) {

                if ((getExtendedState() & JFrame.ICONIFIED) == JFrame.ICONIFIED) {
                    // there is a bug that caused MAC OS 10.9 under java
                    // 1.7.0_25-b15 to popup the iconified owner. the
                    // visible owner
                    // cannot be used or accessed in any way.
                    // workaround: setting the frame invisible in iconified
                    // state should do the job
                    oldVisibleState = isVisible();
                    setVisible(false);
                } else {
                    setVisible(oldVisibleState);
                }

            }
        });
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号