JMapPane and MapLayerTable problems
-----------------------------------

                 Key: GEOT-2862
                 URL: http://jira.codehaus.org/browse/GEOT-2862
             Project: GeoTools
          Issue Type: Bug
          Components: ext mappane
    Affects Versions: 2.6.0
            Reporter: Michael Bedward
            Assignee: Michael Bedward
             Fix For: 2.6.1, 2.7-M0


Email from Jan Torben Heuer

 * If you add a map to a mapcontext and then the context to the JMapFrame, it
is not displayed because the events are not fired afterwards. (At least it did
not display in the Layers Table. Maybe you can fire the events manually after
adding the context for each map? I don't know the whole structure but I think
this could be possible.

 * If the Layers Table is empty (because of the issue above *g*) then some
buttons lead to a NPE. Just check for it here:
{code}
   /**
    * Repaint the list item associated with the specified MapLayer object
    *
    * @param layer the map layer
    */
   public void repaint(MapLayer layer) {
       int index = listModel.indexOf(layer);
       list.repaint(list.getCellBounds(index, index));
   }
{code}
getCellBounds returns null under some circumstances. If it does, a repaint is
not necessary anyway so you can simply return.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to