﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8342	Some images (plus, minus, bing) have package dependent references	The111	The111	"The loading and error images are referenced as follows:

{{{
LOADING_IMAGE = ImageIO.read(JMapViewer.class.getResourceAsStream(""images/hourglass.png""));
ERROR_IMAGE = ImageIO.read(JMapViewer.class.getResourceAsStream(""images/error.png""));
}}}

This is a good thing, since if somebody uses the JMV release JAR file in an application and subclasses JMV, these images can still be found through the JMapViewer.class reference.

However, the plus, minus, and bing images are referenced as follows:

{{{
ImageIcon icon = new ImageIcon(getClass().getResource(""images/plus.png""));
}}}

The problem with this is that if somebody uses the JMV release JAR in their application, and creates a subclass of JMV, that class will not be able to find the path ""images/"" if it has a different package.  Thus it is probably smart to change these references to the same style as the earlier ones, like this:


{{{
ImageIcon icon = new ImageIcon(JMapViewer.class.getResource(""images/plus.png""));
}}}
"	defect	closed	normal		JMapViewer	latest	fixed		
