ImageIcon in JAppler

Discussion in 'Java' started by Mik, Apr 20, 2004.

  1. Mik

    Mik Guest

    I have a problem with drawing ImageIcon objects on a JPanel in a JApplet
    Everything is ok when I run applet locally, but when it's run from a server
    the images are not showing
    ImageIcon objects are constructed from a *.gif files which I load in init()

    for( int i=0 ; i<5 ; i++ )
    {
    URL url = new URL(this.getDocumentBase(),path);
    URLConnection urlConnection = url.openConnection();
    ImageIcon im = new ImageIcon(url);
    }

    There's no Exception... they're just not visible... why?

    Mik
     
    Mik, Apr 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. terry

    JTable ImageIcon

    terry, Aug 5, 2003, in forum: Java
    Replies:
    2
    Views:
    4,106
    Roedy Green
    Aug 6, 2003
  2. Cheok Yan Cheng

    ImageIcon.paintIcon wont work in JApplet

    Cheok Yan Cheng, Aug 13, 2003, in forum: Java
    Replies:
    0
    Views:
    1,781
    Cheok Yan Cheng
    Aug 13, 2003
  3. Phil...

    How to close ImageIcon file

    Phil..., Oct 9, 2003, in forum: Java
    Replies:
    1
    Views:
    513
    William Brogden
    Oct 9, 2003
  4. David

    SplitPanel and ImageIcon

    David, Oct 16, 2003, in forum: Java
    Replies:
    2
    Views:
    496
  5. AIK
    Replies:
    0
    Views:
    426
Loading...

Share This Page