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