Skip to content

Commit

Permalink
Merge pull request #3698 from Akarshit/gsoc-FilterFocus
Browse files Browse the repository at this point in the history
ScrollPane gets the focus by default
  • Loading branch information
benfry committed Aug 22, 2015
2 parents e226038 + f8ad88a commit 0be3aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -194,6 +194,7 @@ public void stateChanged(ChangeEvent e) {
updateTabPanel.setBackground(new Color(0xe0fffd));
updateTabLabel.setForeground(Color.BLACK);
}
getActiveTab().contributionListPanel.scrollPane.requestFocusInWindow();
// // When the tab is changed update status to the current selected panel
// ContributionPanel currentPanel = getActiveTab().contributionListPanel
// .getSelectedPanel();
Expand Down
2 changes: 1 addition & 1 deletion app/src/processing/app/contrib/UpdateContributionTab.java
Expand Up @@ -146,7 +146,7 @@ public void changeSelection(int rowIndex, int columnIndex,
// return super.isRowSelected(row);
// }
};
JScrollPane scrollPane = new JScrollPane(table);
scrollPane = new JScrollPane(table);
table.setFillsViewportHeight(true);
table.setSelectionBackground(new Color(0xe0fffd));
table.setSelectionForeground(table.getForeground());
Expand Down

0 comments on commit 0be3aa2

Please sign in to comment.