2009/10/8 Cintia <[email protected]>: > Hi Michael, > Thank you for your help. > I want to get a color of a layer that tree menu > ContextTreeNode node = (ContextTreeNode) > tree[0].getLastPathComponent(); > layer = (MapLayer) node.getUserObject() ; > Here I get a layer. And the color? The layer is a shapefile (polygon, line > or point). > Thanks > Cintia >
Hi Cintia, I see that you are using the gt-widgets-swing-pending module. I'm afraid that module has no maintainer and will not be continued. The active module is gt-swing which is minimal compared to widgets-swing-pending but does have the advantage that it is being actively developed. I'm sorry for this terrible confusion of swing module names in GeoTools 2.6 ! In summary, there is: gt-swing (modules/unsupported/swing) which is active gt-widgets-swing (modules/unsupported/widgets-swing) no longer maintained gt-widgets-swing-pending (modules/unsupported/widgets-swing-pending) no longer maintained Now to your question, I'm very sorry but I'm still not able to understand it properly. What is it that you want to get the colour of ? I see that you are retrieving a MapLayer in your code but I don't understand what you want to ask of it. Michael PS. please post to the user list so that others may also be able to help you ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
