經常性的,自己設計的對話框無法改變大小,沒有最大化最小化按鈕,等等.在哪里設置這些屬性呢?
JFace的Dialog繼承于Window類,該類中有一方法,設置Shell的樣式.
setShellStyle
protected void setShellStyle(int?newShellStyle)
- Sets the shell style bits. This method has no effect after the shell is created.
The shell style bits are used by the framework method
createShell
when creating this window's shell. -
-
- Parameters:
-
newShellStyle
- the new shell style bits
在Dialog的構造函數中調用該方法,即可更改Dialog的樣式.下為一例:

































































