how to display a image in java application after downloading the image

Posted by Nubkadiya on Stack Overflow See other posts from Stack Overflow or by Nubkadiya
Published on 2010-05-31T16:20:11Z Indexed on 2010/05/31 16:23 UTC
Read the original article Hit count: 232

Filed under:
|
|

i want to display a image after downloading that image from a web-server

i have wrote the code for downloading the image. but i cant set it up to a label or any thing other than jframe (because i want to add more buttons and labels to the GUI).

here is the code to download the image from the webserver. now i want to set it to a label. please help me

URL url = new URL("http://www.personal.psu.edu/acr117/blogs/audrey/images/image-2.jpg");
image = ImageIO.read(url);

© Stack Overflow or respective owner

Related posts about java

Related posts about image