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

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

17.7. Using the SWT PrintDialog Class

The final standard dialog is the PrintDialog , which permits the user to select a print device to which output will be directed. It should be used in any application that permits the user to send jobs to a printer.

17.7.1. How do I do that?

Creating the Print dialog and obtaining the printer settings is a simple task that is performed in much the same manner as obtaining a font from Font dialog or a color from Color dialog. Example 17-6 demonstrates the technique.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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