我如何使用JFace API设置不可调整大小的窗口.考虑下面创建应用程序窗口的代码.我找不到任何设置窗口的方法,因为在shell对象或应用程序窗口父级上无法调整大小.有什么我想念的吗?
public class Application extends ApplicationWindow
{
public Application()
{
super(null);
}
protected Control createContents(Composite parent)
{
prepareShell();
return parent;
}
protected void prepareShell() {
Shell shell = getShell();
shell.setSize(450, 300);
}
public static void main(String[] args)
{
Application app = new Application();
app.setBlockOnOpen(true);
app.open();
Display.getCurrent().dispose();
}
}
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助.