Skip to main content
Jump to: navigation, search

FAQ How do I set the title of a custom dialog?

If you have created your own subclass of the JFace Dialog class, you can set the dialog title by overriding the configureShell method:

   protected void configureShell(Shell shell) {
      shell.setText("My Dialog");

The configureShell method can also be used to set the dialog menu bar image (Shell.setImage), the font (Shell.setFont), the cursor (Shell.setCursor), and other shell attributes.

This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top