示例#1
0
  protected void initBtn() {
    bOk.setText("确定");
    bOk.setToolTipText("确定");
    bOk.setMargin(new Insets(0, 0, 0, 0));
    bOk.setIcon(ExplorerIcons.getExplorerIcon("jprofiler/checkbox_16.png"));
    bOk.addActionListener(this);

    bExit.setText("取消");
    bExit.setToolTipText("取消");
    bExit.setMargin(new Insets(0, 0, 0, 0));
    bExit.setIcon(ExplorerIcons.getExplorerIcon("jprofiler/delete.png"));
    bExit.addActionListener(this);
  }
示例#2
0
 public void setOKText(String title) {
   bOk.setText(title);
 }
示例#3
0
 public void setCancelText(String title) {
   bExit.setText(title);
 }
示例#4
0
 public void setOKVisiable(boolean isVis) {
   bOk.setVisible(isVis);
 }