Goran Pop-Jordanov created BATIK-1075:
-----------------------------------------

             Summary: Swing thread policy violation on mouse click
                 Key: BATIK-1075
                 URL: https://issues.apache.org/jira/browse/BATIK-1075
             Project: Batik
          Issue Type: Bug
          Components: GVT Text
    Affects Versions: 1.7
         Environment: Windows 7
            Reporter: Goran Pop-Jordanov


I have painting issues in Batik component used in Swing. So I instrumented 
RepaintManager as suggested in 
http://www.oracle.com/technetwork/java/javase/swing-135905.html.

Clicking on a JSVGCanvas causes:

        at javax.swing.JComponent.repaint(Unknown Source)
        at 
org.apache.batik.swing.gvt.TextSelectionManager$TextSelectionListener.selectionChanged(Unknown
 Source)
        at 
org.apache.batik.swing.gvt.TextSelectionManager$TextSelectionListener.selectionDone(Unknown
 Source)
        at 
org.apache.batik.gvt.text.ConcreteTextSelector.dispatchSelectionEvent(Unknown 
Source)
        at 
org.apache.batik.gvt.text.ConcreteTextSelector.checkSelectGesture(Unknown 
Source)
        at org.apache.batik.gvt.text.ConcreteTextSelector.mouseReleased(Unknown 
Source)
        at 
org.apache.batik.swing.gvt.TextSelectionManager$MouseListener.mouseReleased(Unknown
 Source)
        at 
org.apache.batik.gvt.event.AWTEventDispatcher.processMouseEvent(Unknown Source)
        at 
org.apache.batik.gvt.event.AWTEventDispatcher.dispatchMouseEvent(Unknown Source)
        at org.apache.batik.gvt.event.AWTEventDispatcher.dispatchEvent(Unknown 
Source)
        at org.apache.batik.gvt.event.AWTEventDispatcher.mouseReleased(Unknown 
Source)
        at org.apache.batik.swing.svg.JSVGComponent$SVGListener$14.run(Unknown 
Source)
        at org.apache.batik.util.RunnableQueue.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2

It seems, within Batik JComponent.repaint() is NOT called in AWT thread.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to