Java swing obtenga recurso de la imagen
image = ImageIO.read(getClass().getResource("/resources/icon.gif"));
Wrong Wasp
image = ImageIO.read(getClass().getResource("/resources/icon.gif"));