private void updateHelpID() { if (helpId == null) { return; } if (getJDialog().getContentPane() != null) { Container contentPane = getJDialog().getContentPane(); if (contentPane instanceof JComponent) { HelpCtx.setHelpIDString((JComponent) contentPane, helpId); } } }
public void showErrorDialog(String message, String title) { showMessageDialog(getJDialog(), message, title, JOptionPane.ERROR_MESSAGE); }
public void showInformationDialog(String infoMessage, String title) { showMessageDialog(getJDialog(), infoMessage, title, JOptionPane.INFORMATION_MESSAGE); }
public void showWarningDialog(String warningMessage, String title) { showMessageDialog(getJDialog(), warningMessage, title, JOptionPane.WARNING_MESSAGE); }
/** * Shows an information dialog on top of this dialog. * * @param infoMessage The message. */ public void showInformationDialog(String infoMessage) { showInformationDialog(infoMessage, getJDialog().getTitle()); }
/** * Shows an error dialog on top of this dialog. * * @param errorMessage The message. */ public void showErrorDialog(String errorMessage) { showErrorDialog(errorMessage, getJDialog().getTitle()); }
/** * Shows a warning dialog on top of this dialog. * * @param warningMessage The message. */ public void showWarningDialog(String warningMessage) { showWarningDialog(warningMessage, getJDialog().getTitle()); }
buttons.add(button); button.setDefaultCapable(true); getJDialog().getRootPane().setDefaultButton(button); registerButton(ID_OK, button); buttons.add(button); button.setDefaultCapable(true); getJDialog().getRootPane().setDefaultButton(button); registerButton(ID_YES, button); buttons.add(button); button.setDefaultCapable(true); getJDialog().getRootPane().setDefaultButton(button); registerButton(ID_APPLY, button);