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 的每个单元格?
是的。从表中获取 TreeModel,从模型中获取行数和列数,组织 2 个循环并使用 getValueAt() 方法获取特定单元格的值。