Revision 20297

View differences:

trunk/extensions/ext3Dgui/src/com/iver/ai2/gvsig3dgui/navigation/NavigationMenu3D.java
7 7
import java.awt.Toolkit;
8 8
import java.awt.geom.Rectangle2D;
9 9
import java.io.File;
10
import java.net.URL;
10 11

  
11 12
import javax.swing.Icon;
12 13
import javax.swing.ImageIcon;
......
58 59

  
59 60
	private String buttonPath;
60 61

  
62
	private String imagesPath;
63

  
61 64
	public void execute(String actionCommand) {
62 65
		// System.out.println("EXECUTE");
63 66

  
......
194 197

  
195 198
		// Register new icons
196 199
		// Default manipulator
200
		
197 201
		PluginServices.getIconTheme().registerDefault(
198 202
				"default-manipulator-icon",
199 203
				this.getClass().getClassLoader().getResource(
......
237 241
		ResourcesFactory.setExtPath(oldPath);// Restore the old path.
238 242
		System.out.println(oldPath);
239 243
		System.out.println(buttonPath);
244
		
245
		URL path;
246
		path = this.getClass().getClassLoader().getResource("images/");
247
		buttonPath = path.getPath(); 
240 248

  
241

  
242
		Image cursorImage = new ImageIcon(buttonPath + "NavigationCursor.gif")
249
		Image cursorImage = new ImageIcon(buttonPath + "/NavigationCursor.gif")
243 250
				.getImage();
244 251

  
245 252
		navCursor = Toolkit.getDefaultToolkit().createCustomCursor(cursorImage,
trunk/extensions/ext3Dgui/src/com/iver/ai2/gvsig3dgui/view/View3D.java
13 13
import java.awt.geom.Rectangle2D;
14 14
import java.beans.PropertyChangeEvent;
15 15
import java.beans.PropertyChangeListener;
16
import java.net.URL;
16 17

  
17 18
import javax.swing.ImageIcon;
18 19
import javax.swing.JPanel;
......
225 226
		System.out.println(oldPath);
226 227
		System.out.println(buttonPath);
227 228
		
228
		Image navCursorImage = new ImageIcon(buttonPath+"NavigationCursor.gif").getImage();
229
		URL path;
230
		path = this.getClass().getClassLoader().getResource("images/");
231
		buttonPath = path.getPath(); 
232

  
233
		Image navCursorImage = new ImageIcon(buttonPath + "/NavigationCursor.gif")
234
				.getImage();
229 235
		
230
		
231 236
		//Image navCursorImage = new ImageIcon(this.getClass().getResource(
232 237
        //    "images/NavigationCursor.gif")).getImage();
233 238
        Cursor navCursor = Toolkit.getDefaultToolkit().createCustomCursor(navCursorImage,

Also available in: Unified diff