Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public TableColumn<Person, Integer> num = new TableColumn<>();
- public TableColumn<Person, String> fName = new TableColumn<>();
- public TableColumn<Person, LocalDate> bDay = new TableColumn<>();
- public TableColumn<Person, String> lastJob = new TableColumn<>();
- public TableView<Person> tableView = new TableView<Person>();
- Stage stage = new Stage();
- Parent root = null;
- try {
- root = FXMLLoader.load(getClass().getResource("table.fxml"));
- } catch (IOException e) {
- e.printStackTrace();
- }
- list = FXCollections.observableArrayList();
- list.add(person);
- tableView.setItems(list);
- stage.setTitle("Select the employee");
- stage.setScene(new Scene(root, 800, 500));
- stage.setResizable(true);
- stage.show();
Add Comment
Please, Sign In to add comment