I am trying to create a table with a single column using the following code :
TableView<String> table = new TableView<String>();
table.getColumns().clear();
table.getColumns().add(new TableColumn<String, String>("City Name"));
table.setItems(cityList);
However I get a table with the "City Name" column followed by a blank column
I am new to JavaFx so there might be a better way of doing this.