Hi all, I am using OJ as a platform for developing GIS-solutions in implementing OJ-Plugins. I am doing this for maybe one and a half year and first I would like to thank everybody who participates in developing OJ now and in the past! There is a lot of great work in the code and I've learned a lot out of it yet. Now my question: I want to change the style of some layers programmatically and my first approach is like this: <CODE> Layer lyrTest = context.getLayerManager().getLayer("test"); lyrTest.getBasicStyle().setEnabled(false); HashMap attributeToStyleMap = new HashMap(); attributeToStyleMap.put(18, new BasicStyle(Color.red)); attributeToStyleMap.put(19, new BasicStyle(Color.blue)); attributeToStyleMap.put(20, new BasicStyle(Color.cyan)); ColorThemingStyle ctStyle = new ColorThemingStyle("BGVNR",attributeToStyleMap,new BasicStyle(Color.gray)); ctStyle.setEnabled(true); lyrTest.addStyle(ctStyle); lyrTest.fireAppearanceChanged(); </CODE> This example works fine and the LayerViewPanel shows the changed styles. But the OJ-standard-menu "Change styles" isn't updated (the colour theming isn't enabled and the Fill- and Line-Checkboxes are still set). How can I do that??? I would be happy if anybody could help me! Nils
------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel