mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
26.00.2008 e0302537bd687bab02f6174e66fd1d9c2f13ba9d
opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
@@ -48,8 +48,6 @@
 */
public class GuiUserInteraction implements UserInteraction {
  static private final int MAX_CHARS_PER_LINE = 100;
  private Component parent = null;
  /**
@@ -99,9 +97,11 @@
    }
    JOptionPane op;
    if (fineDetails != null) {
      op = new DetailsOptionPane(MAX_CHARS_PER_LINE, fineDetails);
      op = new DetailsOptionPane(Constants.MAX_CHARS_PER_LINE_IN_DIALOG,
          fineDetails);
    } else {
      op = new MaxCharactersPerLineOptionPane(MAX_CHARS_PER_LINE);
      op = new MaxCharactersPerLineOptionPane(
          Constants.MAX_CHARS_PER_LINE_IN_DIALOG);
    }
    // Create the main message using HTML formatting.  The max
@@ -110,12 +110,14 @@
    // have to format this ourselves.
    MessageBuilder sb = new MessageBuilder();
    sb.append(Constants.HTML_BOLD_OPEN);
    sb.append(Utils.breakHtmlString(summary, MAX_CHARS_PER_LINE));
    sb.append(Utils.breakHtmlString(summary,
        Constants.MAX_CHARS_PER_LINE_IN_DIALOG));
    sb.append(Constants.HTML_BOLD_CLOSE);
    sb.append(Constants.HTML_LINE_BREAK);
    sb.append(Constants.HTML_LINE_BREAK);
    sb.append(Utils.breakHtmlString(details, MAX_CHARS_PER_LINE));
    sb.append(Utils.breakHtmlString(details,
        Constants.MAX_CHARS_PER_LINE_IN_DIALOG));
    JEditorPane ep = UIFactory.makeHtmlPane(
            sb.toMessage(),
            UIFactory.INSTRUCTIONS_FONT);