title: How to refresh SWT label?
body: <p>I built an <code>FileDialog</code> and after the user selects the file in it a label should be updated with the file name. This is what I have:</p>
  
  <pre><code>Button buttonSelectFile;
  fileFilterPath = "C:/";
  Label myDir;
  
  fileSelectionLabel = new Label(container, SWT.None | SWT.WRAP);
  fileSelectionLabel.setText("Path to file");
  
  buttonSelectFile = new Button(container, SWT.PUSH);
  buttonSelectFile.setText("Select file");
  buttonSelectFile.addListener(SWT.Selection, new Listener() {
      @Override
      public void handleEvent(Event event) {
          Shell shell = new Shell();
          FileDialog fileDialog = new FileDialog(shell, SWT.MULTI);
          fileDialog.setFilterPath(fileFilterPath);
          fileDialog.setFilterExtensions(new String[] { "*.exe" });
          fileDialog.setFilterNames(new String[] { "exe-files" });
  
          String files = fileDialog.open();
          if (files != null) {
              fileFilterPath = fileDialog.getFilterPath();
              selectedFile = fileDialog.getFileName();
              StringBuffer sb = new StringBuffer(
                      "Selected file under directory "
                              + fileDialog.getFilterPath() + "\n");
              sb.append(selectedFile);
          }
      }
  });
  
  myDir = new Label(container, SWT.None);
  new Label(container, SWT.None).setText("");
  </code></pre>
  
  <p>I tried calling <code>myDir.setText(fileFilterPath)</code> inside the <code>handleEvent()</code> method. Also tried to call <code>myDir.layout()</code>, <code>myDir.refresh()</code> and <code>myDir.getParent().layout()</code>. The label doesn't refresh.</p>
  
  <p>How to refresh the label text?</p>