hi,all
I want to make use of the WindowsSpalsh in the java3d fly(tm).but ..
the detail:

package swingtest;

import java.awt.Toolkit;
import java.awt.*;
import com.sun.j3d.demos.utils.gui.SplashWindow;

class SplashWindow2
    extends Component {
  public static void main(String[] args) {
    Thread t = new Thread();

    /*  Toolkit tk = Toolkit.getDefaultToolkit();
      Image image =
          tk.getImage("./pic/pic.jpg");
      String s=(String)image.getProperty("name",this);*/

    //SplashWindow sw = new SplashWindow("./pic/pic.jpg");
    //sw.show();
    SplashWindow.showSplashscreen("pic.jpg");
    SplashWindow.showMessage("I love you much ,please wait patiently");
    try {
      t.wait(2000);
    }
    catch (Exception e) {
      e.printStackTrace();
    }
    SplashWindow.destroySplashscreen();
  }
}


the error is:

Uncaught error fetching image:

java.lang.NullPointerException

at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)

at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:108)

at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:251)


at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:168)

at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)



I have set all including classpath ,pic path,etc.Besides I also looked into the
java3d fly(tm) source code.It is very simple ,just  using it  like me. so WHY?

any comment or remarks will be appreciated much .


yours sincerely

Qingfei Yuan

=============================================================

安全稳定大容量,收费伊妹儿免费30日完美体验~
中国最大的免费邮箱在等你 25兆空间 4兆附件!
点击网易泡泡惊喜无限 全免费手机短信任你发!

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to