Skip to main content

Posts

Showing posts from January, 2018

Disable/Restrict the user from resizing the JFace application window.

Below are the steps if you would like to Disable/Restrict the user from resizing/maximize/minimize the JFace application window. Step 1: Create a sample JFace Application window. Open Eclipse and go to File --> Other New wizard dialog opens asking you to select the project type. Go to WindowBuilder -> SWT Designer -> SWT/JFace Java Project  (If you are not having the window builder plugin enabled in your eclipse please go through this link https://o7planning.org/en/10105/install-windowbuilder-into-eclipse to install window builder) Click Next and provide a valid project name and click finish to create a SWT/Jface project. Project gets created in your workspace, create a package in the src folder and right click on the package and select New -> other and select WindowBuilder -> SWT Designer -> JFace -> ApplicationWindow.  Click Next and provide a valid ApplicationWindow name "SampleWindow" and click Finish. A sample