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

YesNoDialog

The YesNoDialog poses a question and provides two buttons for answering it—a yes button and a no button.

Like MessageDialog, YesNoDialog extends WorkDialog and employs an extension of Postcard that which is displayed in its work panel. The class diagram for the YesNoDialog class is shown in Figure 22-5.

Figure 22-5. YesNoDialog Class Diagram

YesNoDialog is listed in Example 22-7.

Example 22-7. YesNoDialog Class Listing
 import java.awt.*; import java.awt.event.*; public class YesNoDialog extends WorkDialog { private Button yesButton; ...

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