Revision 1139 org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.app/org.gvsig.raster.tools.app.basic/src/main/java/org/gvsig/raster/tools/app/basic/tool/geolocation/ui/GeoLocationOpeningRasterCornersPanel.java

View differences:

GeoLocationOpeningRasterCornersPanel.java
153 153
	 * Obtiene el JLabel con el icono de la esquina superior
154 154
	 * @return JLabel
155 155
	 */
156
	private JLabel getIcoUL(){
157
		return new JLabel(new ImageIcon(getClass().getResource(pathToImages + "upleft.png")));
156
	private JLabel getIcoUL() {
157
		ImageIcon icon = null;
158
		try {
159
			icon = new ImageIcon(getClass().getResource(pathToImages + "upleft.png"));
160
		} catch (NullPointerException e) {
161
			
162
		}
163
		if(icon != null)
164
			return new JLabel(icon);
165
		else
166
			return new JLabel("UL");
158 167
	}
159 168

  
160 169
	/**
161 170
	 * Obtiene el JLabel con el icono de la esquina inferior
162 171
	 * @return JLabel
163 172
	 */
164
	private JLabel getIcoLR(){
165
		return new JLabel(new ImageIcon(getClass().getResource(pathToImages + "downright.png")));
173
	private JLabel getIcoLR() {
174
		ImageIcon icon = null;
175
		try {
176
			icon = new ImageIcon(getClass().getResource(pathToImages + "downright.png"));
177
		} catch (NullPointerException e) {
178
			
179
		}
180
		if(icon != null)
181
			return new JLabel(icon);
182
		else
183
			return new JLabel("LR");
166 184
	}
167 185
	
168 186
	/**

Also available in: Unified diff