O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required