Hi Phil, "Phil Wright" <[EMAIL PROTECTED]> wrote on 11/25/2006 05:47:31 PM:
> I have a problem where immediately after I add a new graphic element to a > document the entire document view clears except for the most recently added > element. The problem started when I added a call to update a JLabel in the > MouseMove listener. Take out the setText() call and the document view is fine. My first guess is that you are modifying the Swing tree outside of the AWT event thread (all DOM events are delivered in the UpdateManager Thread). In this case the 'setText()' may be changing the size of the label which might cause resize stuff to happen which might be problematic if it is triggered outside of the AWT thread. > Resizing the window will also cause the display to update and the whole > document is visible again. > > The app in question has a JFrame, with two JToolbars one of which contains the > JLabel. The JSVGCanvas is in a JInternalFrame inside the main JFrame as well. > > I tried putting in a canvas.repaint() call after the label update but that did nothing. > > Phil > > -- > Visit http://www.darkisle.com for photos of castles, cairns and other historic > sites in the British Isles. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
