title: Eclipse JFace's Wizards (Again ...)
body: <p>Now that I <a href="https://stackoverflow.com/questions/954443/eclipse-jfaces-wizards">am able to set the content of my second wizard's page depending</a> on the first page selection, I am looking for a way to give the focus to my 2nd page's content when the user clicks the next button on the first page.</p>
  
  <p>By default, when the user click the next button, the focus is given to the button composite (next, back or finish button depending on the wizard configuration)</p>
  
  <p>The only way I found to give focus to my page's content is the following one:</p>
  
  <pre><code>public class FilterWizardDialog extends WizardDialog {
  
      public FilterWizardDialog(Shell parentShell, IWizard newWizard) {
          super(parentShell, newWizard);
      }
  
      @Override
      protected void nextPressed() {
          super.nextPressed();
          getContents().setFocus();
      }
  }
  </code></pre>
  
  <p>To me it's a little bit "boring and heavy" to have to override the WizardDialog class in order to implement this behavior. More over, the WizardDialog javadoc says: </p>
  
  <blockquote>
    <p>Clients may subclass <code>WizardDialog</code>, although this is rarely required.</p>
  </blockquote>
  
  <p>What do you think about this solution ? Is there any easier and cleaner solution to do that job ?</p>