ImageTitle needs an image passed to it in the constructor. For ImageTitle to work, you must have already loaded this image from its source (disk or URL). It is recommended you use something like Toolkit.getDefaultToolkit().getImage() to get the image. Then, use MediaTracker or some other message to make sure the image is fully loaded from disk.
SPECIAL NOTE: this class fails to serialize, so if you are relying on your charts to be serializable, please avoid using this class.
|
|