Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bertha Ferguson   on Apr 11 In Java Category.

  
Question Answered By: Taylor White   on Apr 11

No. Just make sure you get the correct URL of the resource files.
Like:

URL url = java.net.URLClassLoader.getSystemResource( "image.jpg" );
Image image = java.awt.Toolkit.getDefaultToolkit().getImage( url );

Instead of:

Image image = java.awt.Toolkit.getDefaultToolkit().getImage
( "image.jpg" );

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Jar file problem Or get search suggestion and latest updates.


Tagged: