ColourScheme colourScheme = (ColourScheme) document.getColourScheme();
Color selectedColour = colourScheme.getHighlightedColour(0);
Color backgroundColour = colourScheme.getBackgroundColour();
// text colour: highlight ? selectedColour : backgroundColour;
BoxWord startBoxWord = new BoxWord(KET_PANEL, startString, 0L);
BoxWord endBoxWord = new BoxWord(KET_PANEL, endString, 0L);
if (getModes().getDocumentState()==DocumentState.UPDATE_TEXT) {
// Text doesn't require a separate message box.
this.messageBoxList = null;
this.messageBox = null;
} else if (message.getMode()==Message.APPEND_MODE) {
// WARNING: Message box's contents can't be found with findDeepestArgument() if they have a null argument.
BoxWord gapBox = new BoxWord(KET_PANEL, "|", 0L);
messageBoxList = BoxTools.centredHorizontalBoxList(KET_PANEL, 0L, startBoxWord, gapBox, endBoxWord);
//- messageBox = new BorderedBox(MESSAGE, messageBoxList, Box.X_CENTRE_ALIGN|Box.BOTTOM_ALIGN, false, colourScheme.getPlainTextColour(), colourScheme);
messageBox = new BorderedBox(MESSAGE, messageBoxList, Box.X_CENTRE_ALIGN|Box.BOTTOM_ALIGN, false, colourScheme);
} else if (messageString.length()>0) { // Echo and error modes.
// TODO: Don't display the cursor in error or echo responder: only in edit responder.