Revision 20297 trunk/extensions/ext3Dgui/src/com/iver/ai2/gvsig3dgui/view/View3D.java
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