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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -