List of utility methods to do JDialog Show
boolean | isShowing(JDialog f) Is the dialog showing if (f == null) { return false; return f.isShowing(); |
void | show(JDialog dlg) Shows a modal dialog. dlg.setModal(true); dlg.setVisible(true); |
void | showDialog(JDialog d) show Dialog final Toolkit toolkit = Toolkit.getDefaultToolkit(); final Dimension screenSize = toolkit.getScreenSize(); final int x = (screenSize.width - d.getWidth()) / 2; final int y = (screenSize.height - d.getHeight()) / 2; d.setLocation(x, y); d.setVisible(true); |
void | showDialog(JDialog dlg, Component parent) show Dialog showDialog(dlg, parent, true); |
void | showErrorMessage(JDialog dialog, String msg) show Error Message JOptionPane.showMessageDialog(dialog, msg, "JavaSnoop", JOptionPane.ERROR_MESSAGE);
|