Here you can find the source of loadLoadingIcon()
public static ImageIcon loadLoadingIcon()
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { public static ImageIcon loadLoadingIcon() { return new ImageIcon(Thread.currentThread().getContextClassLoader().getResource("loading.gif")); }/*from w ww . ja v a2 s .c o m*/ }