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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -