Validating input in c
A swing JDialog class inherits this behavior from the AWT provides support for laying out standard dialogs, providing icons, specifying the dialog title and text, and customizing the button text.
Other features allow you to customize the components the dialog displays and specify where the dialog should appear onscreen.
A fourth method, Displays a modal dialog with one button, which is labeled "OK" (or the localized equivalent).
You can easily specify the message, icon, and title that the dialog displays.
//Custom button text Object options = ; int n = JOption Option Dialog(frame, "Would you like some green eggs to go " "with that ham? If you specify a Frame or Dialog, then the Dialog will appear over the center of the Frame and follow the focus behavior of that Frame.If you specify a component inside a Frame, then the Dialog will appear over the center of that component and will follow the focus behavior of that component's Frame.If you specify null, then the look and feel will pick an appropriate position for the dialog generally the center of the screen and the Dialog will not necessarily follow the focus behavior of any visible Frame or Dialog.Here are some examples of using Displays a modal dialog with the specified buttons, icons, message, title, and so on.With this method, you can change the text that appears on the buttons of standard dialogs. YES_NO_OPTION); constructors are standardized, though the number of arguments for each method and constructor varies. To see the exact list of arguments for a particular method, see The Dialog API.