messagePanel.add(message);
messagePanel.add(UIUtilities.buildComponentPanelRight(message));
    private void buildMessagePanel(String msg, Icon msgIcon)    {        messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.X_AXIS));        if (msgIcon != null) {            JLabel iconLabel = new JLabel(msgIcon);            iconLabel.setAlignmentY(TOP_ALIGNMENT);            messagePanel.add(iconLabel);            messagePanel.add(Box.createRigidArea(H_SPACER_SIZE));        }        MultilineLabel message = new MultilineLabel(msg);        message.setPreferredSize(MSG_AREA_SIZE);        message.setAlignmentY(TOP_ALIGNMENT);        messagePanel.add(message);    }