QuestionDialog
A QuestionDialog, like the YesNoDialog, poses a question. Unlike the YesNoDialog, QuestionDialog provides a textfield instead of buttons for a response to the question instead of buttons. The class diagram for the QuestionDialog class is shown in Figure 22-7.
Figure 22-7. QuestionDialog Class Diagram
QuestionDialog is listed in Example 22-9.
Example 22-9. QuestionDialog Class Listing
import java.awt.*; import java.awt.event.*; public class QuestionDialog extends WorkDialog implements ActionListener{ static private int _defaultTextFieldSize ... |
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.