Lines Matching refs:dialog

61  * <code>JOptionPane</code> makes it easy to pop up a standard dialog box that
65 href="http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html">How to Make Dialogs</a>,
102 * flavor, which uses an internal frame to hold the dialog box (see
124 * The basic appearance of one of these dialog boxes is generally
138 * dialog box.
141 * parent for the dialog box, and its screen coordinates are used in
142 * the placement of the dialog box. In general, the dialog box is placed
145 * and the dialog will be
148 * A descriptive message to be placed in the dialog box.
158 * <dt>Component<dd>The <code>Component</code> is displayed in the dialog.
160 * and displayed in the dialog.
166 * manager may lay out the dialog differently depending on this value, and
176 * the bottom of the dialog box:
186 * that will appear at the bottom of the dialog box.
198 * <dt>icon<dd>A decorative icon to be placed in the dialog box. A default
200 * <dt>title<dd>The title for the dialog box.
225 * <dt>Show an error dialog that displays the message, 'alert':
229 * <dt>Show an internal information dialog with the message, 'information':
238 * <dt>Show an internal information dialog with the options yes/no/cancel and
244 * <dt>Show a warning dialog with the options OK, CANCEL, title 'Warning', and
252 * <dt>Show a dialog asking the user to type in a String:
256 * <dt>Show a dialog asking the user to select a String:
271 * JDialog dialog = pane.createDialog(<i>parentComponent, title</i>);
272 * dialog.show();
309 * description: A component which implements standard dialog box controls.
429 * Shows a question-message dialog requesting input from the user. The
430 * dialog uses the default frame, which usually means it is centered on
445 * Shows a question-message dialog requesting input from the user, with
447 * dialog uses the default frame, which usually means it is centered on
460 * Shows a question-message dialog requesting input from the user
462 * The dialog is displayed on top of the <code>Component</code>'s
466 * dialog
480 * Shows a question-message dialog requesting input from the user and
483 * The dialog is displayed on top of the <code>Component</code>'s
487 * dialog
502 * Shows a dialog requesting input from the user parented to
503 * <code>parentComponent</code> with the dialog having the title
507 * dialog
509 * @param title the <code>String</code> to display in the dialog
530 * Prompts the user for input in a blocking dialog where the
543 * dialog
546 * dialog title bar
580 JDialog dialog = pane.createDialog(parentComponent, title, style);
583 dialog.show();
584 dialog.dispose();
595 * Brings up an information-message dialog titled "Message".
598 * which the dialog is displayed; if <code>null</code>,
615 * Brings up a dialog that displays a message using a default
619 * in which the dialog is displayed; if <code>null</code>,
623 * @param title the title string for the dialog
642 * Brings up a dialog displaying a message, specifying all parameters.
645 * dialog is displayed; if <code>null</code>,
650 * @param title the title string for the dialog
657 * @param icon an icon to display in the dialog that helps the user
672 * Brings up a dialog with the options <i>Yes</i>,
677 * dialog is displayed; if <code>null</code>,
696 * Brings up a dialog where the number of choices is determined
700 * dialog is displayed; if <code>null</code>,
705 * @param title the title string for the dialog
706 * @param optionType an int designating the options available on the dialog:
724 * Brings up a dialog where the number of choices is determined
732 * which the dialog is displayed; if <code>null</code>,
737 * @param title the title string for the dialog
739 * on the dialog: <code>YES_NO_OPTION</code>,
763 * Brings up a dialog with a specified icon, where the number of
769 * dialog is displayed; if <code>null</code>,
774 * @param title the title string for the dialog
775 * @param optionType an int designating the options available on the dialog:
786 * @param icon the icon to display in the dialog
801 * Brings up a dialog with a specified icon, where the initial
816 * in which the dialog is displayed; if
822 * @param title the title string for the dialog
824 * dialog: <code>DEFAULT_OPTION</code>,
835 * @param icon the icon to display in the dialog
844 * for the dialog; only meaningful if <code>options</code>
848 * the dialog
867 JDialog dialog = pane.createDialog(parentComponent, title, style);
870 dialog.show();
871 dialog.dispose();
894 * <code>title</code> is the title of the returned dialog.
901 * the dialog will be closed. Each time the dialog is made visible,
904 * user's subsequent action closes the dialog properly.
906 * @param parentComponent determines the frame in which the dialog
909 * @param title the title string for the dialog
931 * the dialog will be closed. Each time the dialog is made visible,
934 * user's subsequent action closes the dialog properly.
936 * @param title the title string for the dialog
946 JDialog dialog = new JDialog((Dialog) null, title, true);
947 initDialog(dialog, style, null);
948 return dialog;
955 final JDialog dialog;
959 dialog = new JDialog((Frame)window, title, true);
961 dialog = new JDialog((Dialog)window, title, true);
966 dialog.addWindowListener(ownerShutdownListener);
968 initDialog(dialog, style, parentComponent);
969 return dialog;
972 private void initDialog(final JDialog dialog, int style, Component parentComponent) {
973 dialog.setComponentOrientation(this.getComponentOrientation());
974 Container contentPane = dialog.getContentPane();
978 dialog.setResizable(false);
983 dialog.setUndecorated(true);
987 dialog.pack();
988 dialog.setLocationRelativeTo(parentComponent);
994 // (newValue = null in that case). Otherwise, close the dialog.
995 if (dialog.isVisible() && event.getSource() == JOptionPane.this &&
999 dialog.setVisible(false);
1012 dialog.getContentPane().removeAll();
1023 dialog.addWindowListener(adapter);
1024 dialog.addWindowFocusListener(adapter);
1025 dialog.addComponentListener(new ComponentAdapter() {
1037 * Brings up an internal confirmation dialog panel. The dialog
1038 * is a information-message dialog titled "Message".
1041 * in which the dialog is displayed; if <code>null</code>,
1054 * Brings up an internal dialog panel that displays a message
1059 * in which the dialog is displayed; if <code>null</code>,
1063 * @param title the title string for the dialog
1078 * Brings up an internal dialog panel displaying a message,
1082 * in which the dialog is displayed; if <code>null</code>,
1086 * @param title the title string for the dialog
1093 * @param icon an icon to display in the dialog that helps the user
1105 * Brings up an internal dialog panel with the options <i>Yes</i>, <i>No</i>
1109 * which the dialog is displayed; if <code>null</code>,
1123 * Brings up a internal dialog panel where the number of choices
1127 * in which the dialog is displayed; if <code>null</code>,
1130 * @param message the object to display in the dialog; a
1136 * @param title the title string for the dialog
1138 * available on the dialog: <code>YES_NO_OPTION</code>,
1150 * Brings up an internal dialog panel where the number of choices
1157 * which the dialog is displayed; if <code>null</code>,
1160 * @param message the object to display in the dialog; a
1166 * @param title the title string for the dialog
1168 * available on the dialog:
1187 * Brings up an internal dialog panel with a specified icon, where
1194 * in which the dialog is displayed; if <code>null</code>,
1197 * @param message the object to display in the dialog; a
1203 * @param title the title string for the dialog
1205 * on the dialog:
1214 * @param icon the icon to display in the dialog
1226 * Brings up an internal dialog panel with a specified icon, where
1240 * in which the dialog is displayed; if <code>null</code>,
1243 * @param message the object to display in the dialog; a
1249 * @param title the title string for the dialog
1251 * on the dialog: <code>YES_NO_OPTION</code>,
1259 * @param icon the icon to display in the dialog
1267 * for the dialog; only meaningful if <code>options</code>
1286 JInternalFrame dialog =
1289 dialog.setVisible(true);
1291 /* Since all input will be blocked until this dialog is dismissed,
1299 if (dialog.isVisible() && !dialog.isShowing()) {
1300 Container parent = dialog.getParent();
1314 method.invoke(dialog, (Object[])null);
1352 * Shows an internal question-message dialog requesting input from
1353 * the user parented to <code>parentComponent</code>. The dialog
1358 * for the dialog
1369 * Shows an internal dialog requesting input from the user parented
1370 * to <code>parentComponent</code> with the dialog having the title
1373 * @param parentComponent the parent <code>Component</code> for the dialog
1376 * dialog title bar
1388 * Prompts the user for input in a blocking internal dialog where
1400 * @param parentComponent the parent <code>Component</code> for the dialog
1402 * @param title the <code>String</code> to display in the dialog
1430 JInternalFrame dialog =
1434 dialog.setVisible(true);
1436 /* Since all input will be blocked until this dialog is dismissed,
1444 if (dialog.isVisible() && !dialog.isShowing()) {
1445 Container parent = dialog.getParent();
1459 method.invoke(dialog, (Object[])null);
1534 // (newValue = null in that case). Otherwise, close the dialog.
1574 // We want dialog centered relative to its parent component
1580 // If possible, dialog should be fully visible