title: Resizeble Dialog in Java SWT
body: <p>I have a Composite(container) which is inside another composite(Dialog area). The container contains some UI elements. How can I either make the size of the dialog bigger or make it resizeable. Here is my code</p>
  
  <pre><code> protected Control createDialogArea(Composite parent) {
      setMessage("Enter user information and press OK");
      setTitle("User Information");
      Composite area = (Composite) super.createDialogArea(parent);
      Composite container = new Composite(area, SWT.NONE);
      container.setLayout(new GridLayout(2, false));
      container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
  
      Label lblUserName = new Label(container, SWT.NONE);
      lblUserName.setText("User name");
  
      txtUsername = new Text(container, SWT.BORDER);
      txtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
      txtUsername.setEditable(newUser);
      txtUsername.setText(name);
  
      return area;
  }
  </code></pre>