Override這個configureShell可以設置和窗口相關的屬性.
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText("用戶登錄");
newShell.setSize(300, 200);
newShell.setImage(ImageUtils.getImage("icons/logo.gif"));
SWTUtil.centerShell(newShell);
}