minor modifications

drop System.out.println
indentation
This commit is contained in:
Carlos Ruiz 2007-07-12 20:48:24 +00:00
parent 690c3f46d3
commit e72c2ba60d
1 changed files with 9 additions and 9 deletions

View File

@ -69,15 +69,15 @@ public class FCHtmlEditorKit extends HTMLEditorKit {
return getClass().getClassLoader().
getResource("javax/swing/text/html/icons/image-delayed.gif");
} else {
String src = (String)elem.getAttributes().
getAttribute(HTML.Attribute.SRC);
//System.out.println("img load: " + src.substring(4));
URL url = getClass().getClassLoader().
getResource(src.substring(4));
if (url != null) {
System.out.println("load image: " + url);
return url;
}
String src = (String)elem.getAttributes().
getAttribute(HTML.Attribute.SRC);
//System.out.println("img load: " + src.substring(4));
URL url = getClass().getClassLoader().
getResource(src.substring(4));
if (url != null) {
// System.out.println("load image: " + url);
return url;
}
}
return null;
}