@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
Component editComponent = null;
this.domainVector = ctsDialog.getDomainVector();
this.domainName = (String) value;
if (this.domainName!=null && this.domainName.equals(GeneralGraphSettings4MAS.DEFAULT_DOMAIN_SETTINGS_NAME)==true) {
JLabel jLabel = new JLabel(this.domainName);
editComponent = jLabel;
} else {
JTextField jTextField = new JTextField(this.domainName);
jTextField.setBorder(BorderFactory.createEmptyBorder());
jTextField.getDocument().addDocumentListener(this.getTextFieldDocumentListener());
editComponent = jTextField;
}
return editComponent;
}
TableCellEditor4Domains.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:AgentWorkbench
作者:
评论列表
文章目录