So I'm in a situation where I want to use a JTable that can grow and shrink as per user input. (sort of like how an ArrayList can do that while a regular array can't). But I can't find any AbstractTableModel
classes that can do this.
Here is an image of my program: https://i.stack.imgur.com/CI9bQ.png
For my current JTable, I have to enter the number of points (in the field at the top) and based on that, it'll create an entirely new JTable with that many rows... I'm under the impression that this is really inefficient. Is there anyway that I can just press "Enter" or something similar on the keyboard when i'm at the last row, and it'll add a new row?