• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part: I Widgets > Dialogs

Chapter 14. Dialogs

The class Dialog is the abstract superclass of a hierarchy of dialogs that represent built-in platform dialog windows. A dialog window is a top-level shell that is used by the operating system to prompt for a value or inform the user that some condition has occurred. For example, a file dialog prompts the user for a file name, which can then be used by the programmer to open or create a file.

Dialogs vary wildly between platforms in terms of their look and feel. On some platforms, it is possible for native code to access the individual widgets that make up the dialog, whereas other platforms do not provide this capability. For this reason, dialogs are treated as black boxes in SWT. They may contain any number of native controls but these are not accessible to the programmer and not surfaced by any SWT API. More importantly, a dialog is not a widget; Dialog is not a subclass of Widget and does not have API or behavior in common with widgets.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint