- Timestamp:
- 2006-10-14T01:51:35+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/HelpAction.java
r155 r163 10 10 import java.awt.event.WindowAdapter; 11 11 import java.awt.event.WindowEvent; 12 import java.io.IOException; 13 import java.io.StringReader; 12 14 13 15 import javax.swing.AbstractAction; … … 160 162 public void setHelpUrl(String url) { 161 163 this.url = url; 162 help.setText(reader.read(url)); 164 try { 165 help.read(new StringReader(reader.read(url)), help.getEditorKit().createDefaultDocument()); 166 } catch (IOException e) { 167 help.setText("Error while loading page "+url); 168 } 163 169 helpBrowser.setVisible(true); 164 170 }
Note:
See TracChangeset
for help on using the changeset viewer.