/** MENU BAR ITEMS * */ @FXML private void addFile() { FileChooser fileChooser = new FileChooser(); File file = fileChooser.showOpenDialog(Main.getPrimaryStage()); if (file != null) { // turn into P2PFile and add file to TableView<P2PFile> fileList // or maybe add it to the ObservableList<P2PFile> localFiles // and the table view will "listen" for it } }