Java – JTable and custom tablemodel
I try to implement a JTable on the Java GUI, which can fill in the values in the file and allow the user to modify each cell Since I use the GUI editor in the NetBeans IDE, my first instinct is to add JTable to my form from the palette However, I soon realized that I couldn't add more than 100 rows to the table (for my application, I needed about 500 rows) In addition, when looking for a solution to this problem, I noticed that many people said to use custom tablemodel instead of JTable because it is more powerful / effective
First, is there any way to add more than 100 rows to JTable? Second, is using JTable (using defaulttablemodel) really a bad implementation? My form is very complex, so I prefer to use GUI editor to adjust the size, location, etc. of JTable rather than hard coding
Solution
Why is 100 a limit? This sounds like your IDE, not defaulttablemodel For the defaulttablemodel, there is no problem with thousands of rows (not all users want to see all the data)