DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006

    images not loading

    hi, my problem is that i run my applet on a html page(the one on the classes folder) and i can see the JLabels and JTextfields i created....but cant look at the images i put there using the method JLabel(new ImageIcon("file.jpg"))
    but i can watch it when running my applet inside JCrator..just not when double clicking the html file..got any idea?
    by the way, i already made a FilePermission on the policytool file over javas folder.

  2. #2
    Join Date
    Oct 2004
    how do you load the images?
    cause if the images are static, you could just build them into the Jar file of you application and run them from there. The problem is probably that the applet is unable to locate you images.

Similar Threads

  1. Replies: 1
    Last Post: 03-10-2006, 04:02 PM
  2. WAR Deployment - Images not loading
    By gokulram in forum Java
    Replies: 0
    Last Post: 03-18-2005, 11:58 AM
  3. Loading Images into JavaScript.
    By Scott in forum Web
    Replies: 1
    Last Post: 10-31-2002, 07:44 PM
  4. loading images dynamically is slow
    By Michael Shutt in forum Web
    Replies: 0
    Last Post: 06-26-2001, 02:25 PM
  5. Replies: 0
    Last Post: 01-02-2001, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.