public void setMain(Main main) { this.main = main; torrentList.setItems(main.getTorrentData()); torrentTable.setItems(main.getTorrentData()); }