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

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.