repaint() calls paintComponent() for you, so anytime you wish to call paintComponent() just call repaint(), which queue's the call to the EDT safely.
Type: Posts; User: copeg
repaint() calls paintComponent() for you, so anytime you wish to call paintComponent() just call repaint(), which queue's the call to the EDT safely.
Ditto on KevinWorkman's (and other's ) post above. Drawing directly to a Graphics object of a component outside of a regular painting method can result in unexpected behavior (this does not...