Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想禁用我的 JTable 中的某些列,我知道如何禁用它们,但这不是我需要的。我有 4 列
“已接受”列是一个复选框,我希望它保持可编辑状态,但其余部分不应该。有任何想法吗?
|Name | Address | Phone | Accepted | ----------------------------------------- Bob Random 45678 Yes
谢谢 :)
我想到了
public boolean isCellEditable(int row, int column) { return column == 3;