Package examples

Class LoadImageTask

All Implemented Interfaces:
Runnable, Future<BufferedImage>, RunnableFuture<BufferedImage>

public class LoadImageTask extends Task<BufferedImage,Void>
A Task that loads an image from a URL. Loading and decoding progress is reported via the Task progress property and messages are generated when the Task begins and when it finishes. If errors occur then warnings are logged and the Task's value is null.

Applications would typically use LoadImageTask by creating a private subclass that overrode the done method. See SingleFrameExample5.java for an example.

Resources for this class are in the resources/LoadImageTask.properties ResourceBundle.