Here you can find the source of loadFromURL(String url)
public static BufferedImage loadFromURL(String url)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; import java.io.IOException; import java.net.URL; import javax.imageio.ImageIO; public class Main { public static BufferedImage loadFromURL(String url) { try {/*from w w w. ja v a 2s .c om*/ return ImageIO.read(new URL(url)); } catch (IOException e) { e.printStackTrace(); } return null; } }