On Fri, Apr 16, 2010 at 2:33 PM, Michael Grain <[email protected]> wrote: > > Hi, > > Please somebody tell me whats wrong in my code! > Instead images in my application displayed gray squares ( > Here is my code:
styleBuilder.createExternalGraphic( "file:///" + file, "image/png"); Looks like the problem to me - use file.toURL instead to get a working URL. Ian -- Ian Turton ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
