且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JTable与自定义TableModel

更新时间:2023-12-03 17:11:04

是否可以向JTable添加100行以上?

is there a way to add more than 100 rows to a JTable?

为什么限制为100?这听起来像您的IDE,而不是DefaultTableModel.数以万计的行对于DefaultTableModel来说是没有问题的(不是任何用户都希望查看所有数据).

Why is 100 a limit? That sounds like your IDE, not the DefaultTableModel. Tens of thousands of rows is no problem for the DefaultTableModel (not that any user would want to look at all that data).