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
Post a Comment