Displaying JTable in JFrame
What i want to do: I want to list some records of a database. This list should be displayed in a JFrame popup. Description: I have 3 classes: Main.java (runs program) PeopleTableModel.java (holds data, extends AbstractTableModel) PeopleTable.java (holds logic, extends JTable) Why I am getting an ArrayIndexOutOfBoundsException when setting my JFrame to visible? Update: It seems like this error only shows up, when I use my own PeopleTable class. When I assign the table to just a normal JTable, it works. Here is my stack trace I am getting: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 at java