[JAVA2D] calling repaint()
This is semi-swing related, but since there's not a swing-interest list and since it's also semi 2D related, I thought I'd try here.
I learned this past JavaOne that every swing app I have ever written has been broken, as I often do
public static void main(String args)
JFrame f = new JFrame();
when in fact I should be calling this from the event handling thread via a SwingUtilities.invokeLater() call.
My question is, can I call repaint() on a component from another thread, or does that also have to be called from within the event thread? Doesn't repaint just queue a request for later processing anyway? If so, why would I need to spawn a separate thread just to call the repaint?
To unsubscribe, send email to email@example.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
firstname.lastname@example.org and include in the body of the message "help".