示例#1
0
  @Override
  protected Component buildContent() {
    JPanel mainPanel = new JPanel(new BorderLayout());
    JSplitPane splitPane =
        UISupport.createHorizontalSplit(buildCategoriesList(), buildAssertionsList());
    splitPane.setDividerLocation(220);
    getAssertionsTable().setSelectable(true);
    JXToolBar toolbar = UISupport.createSmallToolbar();
    hideDescCB = new JCheckBox("Hide descriptions");
    hideDescCB.setOpaque(false);
    hideDescCB.addItemListener(hideDescListener);
    hideDescCB.setSelected(
        SoapUI.getSettings().getBoolean(AssertionDescriptionSettings.SHOW_ASSERTION_DESCRIPTION));
    toolbar.add(new JLabel("Assertions"));
    toolbar.addGlue();
    toolbar.add(hideDescCB);

    mainPanel.add(toolbar, BorderLayout.NORTH);
    mainPanel.add(splitPane, BorderLayout.CENTER);
    return mainPanel;
  }