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

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

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