java - Non resizable window with JFace -


i how it's possible setup non resizable window jface api. consider code below creates application window. can't find methods setup window not resizable on shell object or application window parent. there i'm missing?

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();     } } 

thanks help.

as far understand you, want set shell style bits prior shell creation.

simply add

@override public void create() {     setshellstyle(swt.dialog_trim);     super.create(); } 

to class, so. omits swt.resize style bit, therefore prevents resizing..


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -