Changeset 11825
- Timestamp:
- 2006-05-12T16:43:56+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r11761 r11825 154 154 public void gainFocus() 155 155 { 156 // If there is nothing in the collection tree there is nothing to do157 if (collection_tree == null || collection_tree.getRowCount() == 0) {158 return;159 }160 161 156 // Add the collection tree and filter back into this pane 162 157 collection_scroll = new JScrollPane(collection_tree); … … 165 160 166 161 // Select the first node in the tree if nothing is already selected 167 if (collection_tree.getSelectionPaths() == null ) {162 if (collection_tree.getSelectionPaths() == null && collection_tree.getRowCount() > 0) { 168 163 collection_tree.setImmediate(true); 169 164 collection_tree.setSelectionRow(0);
Note:
See TracChangeset
for help on using the changeset viewer.