經(jīng)常性的,自己設(shè)計(jì)的對(duì)話框無(wú)法改變大小,沒(méi)有最大化最小化按鈕,等等.在哪里設(shè)置這些屬性呢?
JFace的Dialog繼承于Window類,該類中有一方法,設(shè)置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的構(gòu)造函數(shù)中調(diào)用該方法,即可更改Dialog的樣式.下為一例:
Powered by: BlogJava Copyright © Hexise