2013-08-31 33 views
0

對不起,但我的英語不太好。JNLP和閃屏

我遇到了JNLP和初始屏幕的問題。

當我使用文件.jar啓動我的應用程序時,我的啓動畫面正確啓動,但是當我用文件啓動我的應用程序.jnlp時,啓動畫面中的圖像無法啓動。

有人對我如何解決這個問題有任何想法嗎? 謝謝

回答

0

謝謝你的回答,但我仍然有疑問。

我認爲上面的代碼是用來改變java的splash標準,是正確的嗎?

我不想改變從Java的飛濺,但從我的應用程序,將顯示加載時,下面按照我的代碼飛濺。

try { 
       SplashScreen splash = SplashScreen.getSplashScreen();  
       splash.setImageURL(new URL("Imagens/Splash.png"); 
       Graphics2D g = splash.createGraphics(); 


      } catch (NullPointerException ex) { 

       ex.printStackTrace(); 
      } catch (IOException ex) { 
       ex.printStackTrace(); 
      } catch (IllegalStateException ex) { 
       Logger.getLogger(Splash.class.getName()).log(Level.SEVERE, null, ex); 
      }