WorkDialog

Perhaps 90 percent of all dialogs contain a row of buttons along the bottom of the dialog and a work area above the buttons for user input—that is the rationale for the WorkDialog class.

WorkDialog is an extension of GJTDialog; it that contains two panels—a work area into which a panel can may be placed by extensions, and a button panel that can may be populated with buttons.

The implementation of WorkDialog is straightforward, although it is somewhat lengthy because WorkDialog goes out of its way to implement a number of constructors in order to provide maximum flexibility for its extensions. We'll As a result, we'll show you the entire implementation in one shot. WorkDialog employs an instance of ButtonPanel for managing its row ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.