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); }
public void setOKText(String title) { bOk.setText(title); }
public void setCancelText(String title) { bExit.setText(title); }
public void setOKVisiable(boolean isVis) { bOk.setVisible(isVis); }