Hello, I'm trying to load an image and display it as JLabels ImageIcon.
This is from a method which loads it(the url is just fine)
And the display part(probably not very important)try { URL url = new URL("http://wiki.sa-mp.com/wiki/Image:Skin_"+skin+".png"); skinImg = new BufferedImage(200,250,BufferedImage.TYPE_INT_ARGB); Graphics2D g = skinImg.createGraphics(); g.drawImage(ImageIO.read(url), 0,0,200,250,null); g.dispose(); }catch(IOException e) { e.printStackTrace(); }
And nothing appers. I have other JLabels just after it, they are shown... But not the image one.