[geotk] Error in "Display swing widgets" StylePanel dialog ?

Westgård Trond trondwe at IMR.no
Mon Nov 26 03:40:57 PST 2012


In our application "MapHandler" that heavily relies on the geotoolkit "Display swing widgets"-module we get an error that did not occur in earlier versions of geotoolkit.

It could be caused by error in our own code since we have done some rewriting, but I have a suspicion to the JPropertyDialog class.

In our example we want to change the colors of the polygons in a FeatureMapLayer. We opens the JSimpleStylePanel dialog and change the color (to red in this case) - see below.

The problem comes when the "Apply"-button is pressed. The action is trigged but the variable activePanel is null. The peculiar thing is that at first the activePanel is set to a correct value and then to null and of course when activePanel is not referening a JSimpleStylePanel then the "apply" method in that class is not performed and then nothing happens in the MapLayer.

Any hints would be appreciated !!

Best Regards

Trond



[cid:image002.jpg at 01CDCBD3.4872BF30]


[cid:image004.jpg at 01CDCBD3.4872BF30]
Trond Westgård
Senior Engineer
Institute of Marine Research
Bergen, Norway
trondwe at imr.no

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121126/3aa8a2bb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 13895 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121126/3aa8a2bb/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 55602 bytes
Desc: image004.jpg
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121126/3aa8a2bb/attachment-0003.jpg>


More information about the Geotoolkit mailing list