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

Chapter 17. SWT Standard Dialogs > Using the SWT FileDialog Class

17.3. Using the SWT FileDialog Class

If your application deals with files in any manner, you need a mechanism to ask the user for a filename (to open or save). You have no doubt seen examples of file open dialogs in your favorite development environment or text editor, and you know that they can be fairly complex. A file open dialog will contain many buttons, and a list box or tree view (or both) that enables the user to navigate through the filesystem.

Developing such a dialog from scratch would take many hours of programming time. Fortunately, the SWT FileDialog class does all the heavy lifting for you—all you need to do is create an instance of FileDialog and specify a few parameters.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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