private static ImageIcon loadImage(String path)
    {
        try
        {
            InputStream stream = getResource(path);
            
            if (stream != null)
            {
                ImageIcon icon = new ImageIcon(ImageIO.read(stream));
                
                if (icon.getImageLoadStatus() == MediaTracker.COMPLETE)
                {
                    return icon;
                }
            }
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        
        return null;
    }