images not loading


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: images not loading

  1. #1
    Join Date
    Apr 2006
    Posts
    3

    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.
    Thanks

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    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, 05:02 PM
  2. WAR Deployment - Images not loading
    By gokulram in forum Java
    Replies: 0
    Last Post: 03-18-2005, 12:58 PM
  3. Loading Images into JavaScript.
    By Scott in forum Web
    Replies: 1
    Last Post: 10-31-2002, 08:44 PM
  4. loading images dynamically is slow
    By Michael Shutt in forum Web
    Replies: 0
    Last Post: 06-26-2001, 03:25 PM
  5. Replies: 0
    Last Post: 01-02-2001, 08: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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