我需要在JTABLE中某一列进行编辑的时候弹出对话框,
以下事件不能成功,是否直接用FraeTable来添加事件,
但怎么判断是在特定列才发生呢?请教解答,谢谢
FraeTable.getCellEditor(0,0).addCellEditorListener(new CellEditorListener() {
// public void editingStopped(ChangeEvent e) {
// System.out.println("stop");
// }
//
// public void editingCanceled(ChangeEvent e) {
// System.out.println("cancel");
// }
// });
以下事件不能成功,是否直接用FraeTable来添加事件,
但怎么判断是在特定列才发生呢?请教解答,谢谢
FraeTable.getCellEditor(0,0).addCellEditorListener(new CellEditorListener() {
// public void editingStopped(ChangeEvent e) {
// System.out.println("stop");
// }
//
// public void editingCanceled(ChangeEvent e) {
// System.out.println("cancel");
// }
// });
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货