PrintDlogs Demo

Description

This directory contains the PrintDlogs demo, a Java program that illustrates some of the JClass BWT components by constructing a look-alike standard Windows Print and Print Setup Dialog Boxes.

Sample Applet

Above you will see the PrintDlogs applet. Select the desired Dialog Box by clicking on the proper tab.

In the Print Dialog box, the Print Range group implements exclusive radio buttons activated by selecting them or by typing information in the from or to textfields.

In the Print Setup Dialog box, the Orientation group implements a listener for the exclusive radio buttons to display the proper bitmap for the selected orientation (Portrait or Landscape).

Source Code

The source code is organized into the following files:

  1. The Main GUI Entry Point. It creates a tabbed Panel with Print and Print Setup tabs
  2. The code to implement the print dialog box
  3. The code to implement the print setup dialog box
  4. The main object for this demo
  5. The frameButton object for this demo