()
| 329 | } |
| 330 | |
| 331 | @AstroImageJ(reason = "Use astronomy_icon", modified = true) |
| 332 | private void loadCursors() { |
| 333 | Toolkit toolkit = Toolkit.getDefaultToolkit(); |
| 334 | String path = Prefs.getImageJDir()+"/astronomy_icon.gif"; |
| 335 | File f = new File(path); |
| 336 | if (!f.exists()) |
| 337 | return; |
| 338 | //Image image = toolkit.getImage(path); |
| 339 | ImageIcon icon = new ImageIcon(path); |
| 340 | Image image = icon.getImage(); |
| 341 | if (image==null) |
| 342 | return; |
| 343 | int width = icon.getIconWidth(); |
| 344 | int height = icon.getIconHeight(); |
| 345 | Point hotSpot = new Point(width/2, height/2); |
| 346 | Cursor crosshairCursor = toolkit.createCustomCursor(image, hotSpot, "crosshair-cursor.gif"); |
| 347 | ImageCanvas.setCursor(crosshairCursor, 0); |
| 348 | } |
| 349 | |
| 350 | void configureProxy() { |
| 351 | if (Prefs.useSystemProxies) { |
no test coverage detected