Name: vi73552 Date: 04/28/99
I don't know, if my problem is a bug or a feature, or both?
I tried to get an Image from an loaded HTML-Site via HTMLEditorKit.setPage(URl url).
I found, that the class ImageView loads the Image from the URL. ImageView is created by the Method HTMLEditorKit.HTMLFactory.create(Element elem)...
( But all that you know too (or better :) ))
ImageView is a package-class, and has no method, to get the downloaded Image! that is more a feature problem than a bug.
->What about -making the class ImageView public (why is this class package (InlineView, ListView ... are public too!)
-> -adding a method to ImageView to return the Image
Then:
In the class ImageView is a property called
static final String IMAGE_CACHE_PROPERTY = "imageCache";
but this property isn't yet used. (I don't know, but the cache would be the right place for getting the Images)
The third:
Is it possible to create a method in HTMLEditorKit, to abort the loading of a WebPage? (and still viewing the page with the Images, which are already loaded);
I only used the swing-version of jdk1.2 (the java-doc too)
but in the on-line version of the documentation swing1.1.1 (eary access) the class ImageView was still a package class.
In the class HTMLEditorKit.HTMLFactory in the javadoc-document is a table, which view is used for the tags (The table is one line! ->the writer forgotten some tags)
For Tag.IMG is the view ImageView - that is correct. But because the ImageView-class is package, there is no documentation for this class available - there is no way to find Information for the ImageView class (the souce-code, but ...)
(Review ID: 57116)
======================================================================