src/share/classes/java/awt/SplashScreen.java

Print this page

        

*** 117,127 **** throw new HeadlessException(); } // SplashScreen class is now a singleton if (!wasClosed && theInstance == null) { java.security.AccessController.doPrivileged( ! new sun.security.action.LoadLibraryAction("splashscreen")); long ptr = _getInstance(); if (ptr != 0 && _isVisible(ptr)) { theInstance = new SplashScreen(ptr); } } --- 117,132 ---- throw new HeadlessException(); } // SplashScreen class is now a singleton if (!wasClosed && theInstance == null) { java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("splashscreen"); ! return null; ! } ! }); long ptr = _getInstance(); if (ptr != 0 && _isVisible(ptr)) { theInstance = new SplashScreen(ptr); } }