NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #UIB-794005]: issue with getImage method in GuiUtils



> R/Sir
> 
> I am trying to overlay a logo in jython script.
> And tracing down I find out that it calls:
> public static Image getImage(String file, Class c, boolean cache,
> boolean returnNullIfNotFound)  in
> GuiUtils.java
> 
> In executing this method, this line is giving uncaught exception:
> image = Toolkit.getDefaultToolkit().createImage(Misc.getURL(file, c));
> 
> The reason is that the method Misc.getURL(file, c) is returning null.
> 

Ghansham,
     It sounds like the path of the file is incorrected or the file is not in 
the right place, could you double check? 


Yuan
> Please help
> 
> 
> regards
> Ghansham
> 
> 
> 


Ticket Details
===================
Ticket ID: UIB-794005
Department: Support IDV
Priority: Normal
Status: Open