Called from {@link #installComponents} to create a {@code Container}
containing the body of the message. The icon is the created by calling
{@link #addIcon}.
549565
@Override
    protected Container createMessageArea() {
        JPanel top = new JPanel();
        top.setName("OptionPane.messageArea");
        top.setLayout(new BorderLayout());

        /* Fill the body. */
        Container body = new JPanel(new GridBagLayout());
        Container realBody = new JPanel(new BorderLayout());

        body.setName("OptionPane.body");
        realBody.setName("OptionPane.realBody");

        if (getIcon() != null) {
            JPanel sep = new JPanel();
            sep.setName("OptionPane.separator");
            sep.setPreferredSize(new Dimension(15, 1));
            realBody.add(sep, BorderLayout.BEFORE_LINE_BEGINS);
        }
        realBody.add(body, BorderLayout.CENTER);

        GridBagConstraints cons = new GridBagConstraints();
        cons.gridx = cons.gridy = 0;
        cons.gridwidth = GridBagConstraints.REMAINDER;
        cons.gridheight = 1;

        SeaGlassContext context = getContext(optionPane, ENABLED);
        cons.anchor = context.getStyle().getInt(context, "OptionPane.messageAnchor", GridBagConstraints.CENTER);
        context.dispose();

        cons.insets = new Insets(0, 0, 3, 0);

        addMessageComponents(body, cons, getMessage(), getMaxCharactersPerLineCount(), false);
        top.add(realBody, BorderLayout.CENTER);

        addIcon(top);
        return top;
    }
210664
@Override
	public void body() {

		IMessageEvent msg = (IMessageEvent) getReason();

		String content = (String) msg.getParameter("content").getValue();

		if (content.equalsIgnoreCase("UnknownLanguageCall")) {
			this.getBeliefbase().getBelief("operatorTalking").setFact(true);

			try {

				String type = (String) msg.getParameter("performative")
						.getValue();
				String agent_name = (String) ((IComponentIdentifier) msg
						.getParameter(SFipa.SENDER).getValue()).getLocalName();

				String answer = (String) ((AgentBehaviour) getBeliefbase()
						.getBelief("agent_behaviour").getFact())
						.processMessage(type, agent_name, content);
				if (answer == null)
					answer = "Unknown required action";

				IMessageEvent msgResp = getEventbase().createReply(msg,
						"send_inform");
				msgResp.getParameter(SFipa.CONTENT).setValue(answer);

				sendMessage(msgResp);

			} catch (Exception e) {
				// Not important for tutorial purposes.
			}
		}

	}
730685
private function buildBody()
    {
        // Build Body Element
        $this->body = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('div', '', '', 'ui-notification-body');
        $this->append($this->body);

        // Populate the notification icon
        $icon = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('span', '', '', 'ui-notification-icon');
        $this->appendToBody($icon);

        return $this;
    }
11174
public static Button createIconButton(String name, String description, Resource icon) {

        return createIconButton(name, description, icon, I_CmsAppButtonProvider.BUTTON_STYLE_TRANSPARENT);
    }
477715
public void setFrameIcon(Icon newIcon) {
        Icon oldIcon = getFrameIcon();
        titleLabel.setIcon(newIcon);
        firePropertyChange("frameIcon", oldIcon, newIcon);
    }
92307
private Component createImageButton() {

        CssLayout layout = new CssLayout();
        layout.addStyleName(OpenCmsTheme.USER_IMAGE);
        Image userImage = new Image();
        userImage.setSource(
            new ExternalResource(
                OpenCms.getWorkplaceAppManager().getUserIconHelper().getBigIconPath(A_CmsUI.getCmsObject(), m_user)));

        layout.addComponent(userImage);

        if (!CmsAppWorkplaceUi.isOnlineProject() & (m_uploadListener != null)) {
            CmsUploadButton uploadButton = createImageUploadButton(
                null,
                FontOpenCms.UPLOAD_SMALL,
                m_user,
                m_uploadListener);
            layout.addComponent(uploadButton);
            if (CmsUserIconHelper.hasUserImage(m_user)) {
                Button deleteButton = new Button(FontOpenCms.TRASH_SMALL);
                deleteButton.addClickListener(new ClickListener() {

                    private static final long serialVersionUID = 1L;

                    public void buttonClick(ClickEvent event) {

                        OpenCms.getWorkplaceAppManager().getUserIconHelper().deleteUserImage(A_CmsUI.getCmsObject());
                        m_context.updateUserInfo();

                    }
                });
                layout.addComponent(deleteButton);
            }
        }

        return layout;
    }
214865
private ImageIcon createIcon(String resourcePath) {
		if (getView() == null) {
			return null;
		}
		return new ImageIcon(ExtensionScript.class.getResource(resourcePath));
	}
222122
public static Component createComponent(Vertx vertx, Container container) {
    InstanceContext context = parseContext(container.config());
    return new DefaultComponentFactory().setVertx(vertx).setContainer(container).createComponent(context, new DefaultCluster(context.component().network().cluster(), vertx, container));
  }
1164229
private Component createAddKeyButton() {

        // the "+" button
        Button addKeyButton = new Button();
        addKeyButton.addStyleName("icon-only");
        addKeyButton.addStyleName("borderless-colored");
        addKeyButton.setDescription(m_messages.key(Messages.GUI_ADD_KEY_0));
        addKeyButton.setIcon(FontOpenCms.CIRCLE_PLUS, m_messages.key(Messages.GUI_ADD_KEY_0));
        addKeyButton.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                handleAddKey();

            }
        });
        return addKeyButton;
    }
34826
public IIconProvider build()
	{
		switch (type)
		{
			case DEFAULT:
				return (IIconProvider) () -> defaultIcon;
			case SIDES:
				return (ISidesIconProvider) side -> MoreObjects.firstNonNull(sidesIcons.get(side), defaultIcon);
			case STATE:
				return getStateIconProvider();
			case WALL:
				return getWallIconProvider();
			case CONNECTED:
				return new ConnectedIconsProvider(this);
			case MODEL:
				return new ModelIconProvider(this);

			default:
				return null;
		}
	}
443500
public static Bitmap createIcon(IconRow icon, float density, IconCache iconCache) {
        return iconCache.createIcon(icon, density);
    }
299441
protected ComponentContainer createContainer(@Nullable ComponentContainer parent) {
    if (parent == null) {
      return new ComponentContainer();
    }
    return parent.createChild();
  }
1084853
protected PushButton createIconButton(String icon) {

        CmsPushButton button = new CmsPushButton();
        button.setImageClass(icon);
        button.setButtonStyle(ButtonStyle.FONT_ICON, null);
        return button;
    }
1306404
protected void buildComponent() {
        addComponent(titleLayout);
        setComponentAlignment(titleLayout, Alignment.TOP_LEFT);
        setWidth(100, Unit.PERCENTAGE);
        setImmediate(true);
        addStyleName("action-history-header");
        addStyleName("bordered-layout");
        addStyleName("no-border-bottom");
    }
4868
public IconType<WebFragmentDescriptor> getOrCreateIcon()
   {
      List<Node> nodeList = model.get("icon");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new IconTypeImpl<WebFragmentDescriptor>(this, "icon", model, nodeList.get(0));
      }
      return createIcon();
   }
689950
public static Button createIconButton(Resource icon, String caption) {

        Button button = new Button();

        button.addStyleName(OpenCmsTheme.BUTTON_TABLE_ICON);
        button.addStyleName(ValoTheme.BUTTON_BORDERLESS);
        button.setIcon(icon);
        button.setDescription(caption);
        return button;
    }
571901
private void addSubComponents() {
        menuButton.setName("InternalFrameTitlePane.menuButton");
        iconButton.setName("InternalFrameTitlePane.iconifyButton");
        maxButton.setName("InternalFrameTitlePane.maximizeButton");
        closeButton.setName("InternalFrameTitlePane.closeButton");

        add(menuButton);
        add(iconButton);
        add(maxButton);
        add(closeButton);
    }