equal
deleted
inserted
replaced
27 import java.io.IOException; |
27 import java.io.IOException; |
28 import java.awt.image.*; |
28 import java.awt.image.*; |
29 import java.net.URL; |
29 import java.net.URL; |
30 import java.net.URLConnection; |
30 import java.net.URLConnection; |
31 import java.io.File; |
31 import java.io.File; |
32 import java.util.logging.Logger; |
32 import sun.util.logging.PlatformLogger; |
33 import java.util.logging.Level; |
|
34 import sun.awt.image.SunWritableRaster; |
33 import sun.awt.image.SunWritableRaster; |
35 |
34 |
36 /** |
35 /** |
37 * The splash screen can be created at application startup, before the |
36 * The splash screen can be created at application startup, before the |
38 * Java Virtual Machine (JVM) starts. The splash screen is displayed as an |
37 * Java Virtual Machine (JVM) starts. The splash screen is displayed as an |
202 imageURL = new File(fileName).toURL(); |
201 imageURL = new File(fileName).toURL(); |
203 } |
202 } |
204 } |
203 } |
205 } |
204 } |
206 catch(java.net.MalformedURLException e) { |
205 catch(java.net.MalformedURLException e) { |
207 if (log.isLoggable(Level.FINE)) { |
206 if (log.isLoggable(PlatformLogger.FINE)) { |
208 log.log(Level.FINE, "MalformedURLException caught in the getImageURL() method", e); |
207 log.fine("MalformedURLException caught in the getImageURL() method", e); |
209 } |
208 } |
210 } |
209 } |
211 } |
210 } |
212 return imageURL; |
211 return imageURL; |
213 } |
212 } |
353 * @see #getSplashScreen |
352 * @see #getSplashScreen |
354 * @see #close |
353 * @see #close |
355 */ |
354 */ |
356 private static SplashScreen theInstance = null; |
355 private static SplashScreen theInstance = null; |
357 |
356 |
358 private static final Logger log = Logger.getLogger("java.awt.SplashScreen"); |
357 private static final PlatformLogger log = PlatformLogger.getLogger("java.awt.SplashScreen"); |
359 |
358 |
360 private native static void _update(long splashPtr, int[] data, int x, int y, int width, int height, int scanlineStride); |
359 private native static void _update(long splashPtr, int[] data, int x, int y, int width, int height, int scanlineStride); |
361 private native static boolean _isVisible(long splashPtr); |
360 private native static boolean _isVisible(long splashPtr); |
362 private native static Rectangle _getBounds(long splashPtr); |
361 private native static Rectangle _getBounds(long splashPtr); |
363 private native static long _getInstance(); |
362 private native static long _getInstance(); |