Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > ImageIcon in JAppler

Thread Tools

ImageIcon in JAppler

Posts: n/a
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[i]);
URLConnection urlConnection = url.openConnection();
ImageIcon im = new ImageIcon(url);

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


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
showing imageicon images in a jframe AIK Java 0 11-13-2003 02:07 AM
SplitPanel and ImageIcon David Java 2 10-16-2003 09:01 PM
How to close ImageIcon file Phil... Java 1 10-09-2003 06:13 PM
ImageIcon.paintIcon wont work in JApplet Cheok Yan Cheng Java 0 08-13-2003 03:11 PM
JTable ImageIcon terry Java 2 08-06-2003 06:09 AM