code: public static String createDialogTitle(String appName, String dialogName) {
          if (appName != null) {
              StringBuffer buf = new StringBuffer(appName);
              buf.append(": ");
              buf.append(dialogName);
              return buf.toString();
          }
  
          return dialogName;
      }
docs: Return text which conforms to the Look and Feel Design Guidelines for the
  title of a dialog : the application name, a colon, then the name of the
  specific dialog.
  
  @param dialogName
  the short name of the dialog.