コード例 #1
0
 public void showOneTimeAlertDialog(
     String dialogId, Component parent, String title, JComponent message) {
   if (!PreferencesManager.getPreferences(AlertDialog.class)
       .node(dialogId)
       .getBoolean("show", true)) return;
   AlertDialog dialog = new AlertDialog(message);
   dialog.setDontShowAgainVisible(true);
   dialog.setDontShowAgain(false);
   JOptionPane.showMessageDialog(parent, dialog, title, JOptionPane.INFORMATION_MESSAGE);
   if (dialog.getDontShowAgain()) {
     PreferencesManager.getPreferences(AlertDialog.class).node(dialogId).putBoolean("show", false);
   }
 }
コード例 #2
0
 public void showAlertDialog(String title, String message) {
   showAlertDialog(getProjectExplorer(), title, AlertDialog.createMessage(message));
 }
コード例 #3
0
 public void showOneTimeAlertDialog(
     String dialogId, Component parent, String title, String message) {
   showOneTimeAlertDialog(dialogId, parent, title, AlertDialog.createMessage(message));
 }
コード例 #4
0
 public void showAlertDialog(Component parent, String title, String message) {
   showAlertDialog(parent, title, AlertDialog.createMessage(message));
 }