隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 829297
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          重寫ApplicationWorkbenchWindowAdvisor類的postWindowOpen方法
          public void postWindowOpen() {
            //窗口居中
            Shell shell = getWindowConfigurer().getWindow().getShell();
            Rectangle screenSize = Display.getDefault().getClientArea();
            Rectangle frameSize = shell.getBounds();
            shell.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
           }



          posted on 2008-12-05 23:40 Ke 閱讀(397) 評論(0)  編輯  收藏 所屬分類: eclipse RCP
          主站蜘蛛池模板: 阿巴嘎旗| 丰都县| 天长市| 青田县| 丰顺县| 分宜县| 卓尼县| 金门县| 全州县| 盱眙县| 德庆县| 石门县| 琼海市| 柯坪县| 淳化县| 岑巩县| 贵溪市| 宣武区| 新平| 锦州市| 武清区| 茂名市| 阿鲁科尔沁旗| 安龙县| 凉城县| 银川市| 七台河市| 彰化县| 霍山县| 自贡市| 海城市| 偃师市| 福泉市| 文安县| 宿迁市| 顺昌县| 大石桥市| 扎兰屯市| 会昌县| 梅河口市| 新乡市|