Changeset 2199 for trunk/java-client
- Timestamp:
- 2001-03-20T11:22:23+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java
r2198 r2199 271 271 // get the result object from the SelectedIndex 272 272 // assume we only get here with events from resultsList 273 int docLength = 0; 273 274 if (e.getValueIsAdjusting()) { return; } 274 275 Result result = (Result) resultsList.getSelectedValue(); … … 300 301 styledEditorKit.read( sr, defaultStyledDoc, 0); 301 302 documentPane.setDocument(defaultStyledDoc); 303 docLength = defaultStyledDoc.getLength(); 302 304 } 303 305 else { // treat as HTML … … 305 307 htmlEditorKit.read( sr, htmlDoc, 0); 306 308 documentPane.setStyledDocument( htmlDoc ); 309 docLength = htmlDoc.getLength(); 307 310 } 308 311 } // end try … … 316 319 } 317 320 318 if (doc umentPane.getLength > 0)321 if (docLength > 0) 319 322 documentPane.setCaretPosition(1); 320 323 // we might not be using htmlDoc at this point!!
Note:
See TracChangeset
for help on using the changeset viewer.