code: public static void showMessageDialog(final Component parentComponent,
              final Object message, final String title, final int messageType) {
  
          execute(new VoidOptionPane() {
              public void show() {
                  JOptionPane.showMessageDialog(parentComponent, message, title, messageType);
              }
          });
  
      }
docs: Brings up a dialog that displays a message using a default icon
  determined by the <code>messageType</code> parameter.
  
  @param parentComponent
  determines the <code>Frame</code> in which the dialog is
  displayed; if <code>null</code>, or if the
  <code>parentComponent</code> has no <code>Frame</code>, a
  default <code>Frame</code> is used
  @param message
  the <code>Object</code> to display
  @param title
  the title string for the dialog
  @param messageType
  the type of message to be displayed:
  <code>ERROR_MESSAGE</code>, <code>INFORMATION_MESSAGE</code>,
  <code>WARNING_MESSAGE</code>, <code>QUESTION_MESSAGE</code>,
  or <code>PLAIN_MESSAGE</code>