On Tue, 15 Mar 2022 06:09:40 GMT, Tejesh R <d...@openjdk.java.net> wrote:
>> Since the image is removed from MediaTracker, its status can't change after >> that. Therefore `LOADING` status should be changed to `ABORTED`. >> [JDK-6421373](https://bugs.openjdk.java.net/browse/JDK-6421373) has a test >> case which can be modified to load an image and check `loadStatus` of the >> image. > > @aivanov-jdk , even after interrupted the load status gets the "COMPLETE" > status and I'm able to use the Imageicon for frame...... @TejeshR13, What kind of image do you load? If I load an image from the Internet, I get `LOADING` status. I've attached `ImageIconInterrupt.java` to [JDK-6421373](https://bugs.openjdk.java.net/browse/JDK-6421373). It produces the following output: INTERRUPTED while loading Image false 1 LOADING ------------- PR: https://git.openjdk.java.net/jdk/pull/7754