You really don't want to put any program logic in a paint(Graphics g) method because you have no way of knowing when or how often it will be called. The actionListener is generally a far better place for it.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
Yes, try that. There's no need for paint(...) unless you are doing custom graphics of some sort.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073