酷符网java > 正文

AbstractTableModel的setValueAt()方法未失去焦点不能触发解决

2011-07-12 00:44codeif.com

只需要在保存按钮事件里加上

if(table.isEditing()){
  table.getCellEditor().stopCellEditing();
}

代码就可以了

相关文章

    None Found
新浪微博 | 淘段子 | 我的博客 | 淘宝店铺 | jnan.org | RSS
Copyright © 2009 - 2011 酷符网