How I can use arraylist to store my data in predefined default table model for JTable
问题 I want to add data to my own JTable model in runtime. I have the table and add button on my interface. As I understand I cant do it with two dimensional array and want to use Arraylist in my custom made table model but I dont know how to make the constructor if I use such type of data. static String[] columnNames = {"A", "B", "C"}; static Object data[][] = new Object[15][3]; public MyTableModel() { super(data, columnNames); } this is the constructor for data as two dimansional array but I