How to make an icon URL based, Java -


i've made java app uses url based images instead of file based images. question is, there way url image icon image?

frame.seticonimage(new imageicon("icon.png").getimage()); 

that's how icon image tried:

frame.seticonimage(new imageicon("i.imgur.com/<whatever>").getimage()); 

and didn't seem work, there way to or there atleast way rid of icon altogether without using blank texture file?

url url = new url("http://some url/mypic.jpg"); image image = imageio.read(url);  f.seticonimage(new imageicon(image).getimage()); 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -