[英]getting values from jtable after disabling the editing option
cant call methods like System.out.println(sellTable.getValueAt(sellTable.getSelectedRow(),1));
不能调用
System.out.println(sellTable.getValueAt(sellTable.getSelectedRow(),1));
in mouse click
event after disabling the jtable
editing option , how to get values from selected column and row just by clicking on them after disabling the editing option在禁用
jtable
编辑选项后的mouse click
事件中,如何在禁用编辑选项后仅通过单击它们来从选定的列和行中获取值
you can use this method :你可以使用这个方法:
public Object getValueAt(int rowIndex, int columnIndex);
from your table class (implements public interface TableModel
)从您的表类(实现公共接口
TableModel
)
Can you provide some code to reproduce the problem?你能提供一些代码来重现问题吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.