示例#1
0
文件: ToolBar.java 项目: giampy/PNSC
  public void createUpdateCheckBar() {
    // TODO Auto-generated method stub

    if (checkBar != null) {
      checkBar.removeAll(this);
      this.remove(help);
      this.remove(prop);
      this.remove(filler);
    } else addSeparator();

    checkBar = new PropertyCheckForRealTimeBar(parent);
    checkBar.addTo(this);
    prop = new JLabel();
    prop.setEnabled(false);
    updateLabel();
    add(prop);
    filler = new JPanel();
    filler.setLayout(new BoxLayout(filler, BoxLayout.X_AXIS));
    filler.add(Box.createHorizontalGlue());
    add(filler);
    help = helpButton();

    add(help);
  }