Fill TableView (columns and data) with ArrayList

All of the pages i have read shows that you have to manually create tableview columns.

What i would like to do is have the tableview automatically create the columns that are necessary to display class information in an arrayList

So if I change my player class to store more information like birthday I don't have to change the tableview it just automatically updates.

package Homework_5;

public class Player {

private String firstName;

private String lastName;

private int age;

public Player(String firstName, String lastName, int age) {

this.firstName = firstName;

this.lastName = lastName;

this.age = age;

}

public String GetFirstName() {

return firstName;

}

public...

Read More »

By: StackOverFlow - 5 days ago

Related Posts