Guest User

Untitled

a guest
Oct 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. public TableColumn<Person, Integer> num = new TableColumn<>();
  2. public TableColumn<Person, String> fName = new TableColumn<>();
  3. public TableColumn<Person, LocalDate> bDay = new TableColumn<>();
  4. public TableColumn<Person, String> lastJob = new TableColumn<>();
  5. public TableView<Person> tableView = new TableView<Person>();
  6.  
  7. Stage stage = new Stage();
  8. Parent root = null;
  9. try {
  10. root = FXMLLoader.load(getClass().getResource("table.fxml"));
  11. } catch (IOException e) {
  12. e.printStackTrace();
  13. }
  14. list = FXCollections.observableArrayList();
  15. list.add(person);
  16. tableView.setItems(list);
  17. stage.setTitle("Select the employee");
  18. stage.setScene(new Scene(root, 800, 500));
  19. stage.setResizable(true);
  20. stage.show();
Add Comment
Please, Sign In to add comment