void (ActionEvent e) { Repository selectedRepo = (Repository)repoSelector.getSelectedItem(); myHeadToBranchListPanel.setCommits(getHeadToBranchCommits(selectedRepo)); myBranchToHeadListPanel.setCommits(getBranchToHeadCommits(selectedRepo)); }