Working in the same project as 
http://www.nabble.com/ways-to-get-Features-with-click-td18799656.html here 
I got a new application feature request I have troubles with. The
SelectAction behaves as expected when performing clicks. Now I should
implement an option also to perform area selection. When I try to select an
area with the SelectAction tool, I get the following error (trimmed to first
few lines):

29.8.2008 7:50:29 org.geotools.renderer.lite.StreamingRenderer paint
SEVERE: null
java.lang.NullPointerException
        at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1526)
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:642)
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:501)
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:450)
        at org.geotools.gui.swing.JMapPane.paintComponent(JMapPane.java:541)
        at javax.swing.JComponent.paint(Unknown Source)...
        ...

I'm adding each layer (cities, roads, selected schedules) with it's own
style, created with a stylebuilder. How do I solve this? If it's complicated
to solve, I'm off to implement my own tool and implement a mouseClicked,
mousePressed, mouseReleased and mouseMoved events for requested
functionality.
-- 
View this message in context: 
http://www.nabble.com/SelectAction-area-select-%28mouse-drag%29-tp19214769p19214769.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to