hans teeuwen

Greenhorn
+ Follow
since Dec 20, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hans teeuwen

I have the method PaintComponent that I want to invoke every second, to update my drawn image.

When I put repaint() in my run method it doesn't invoke the paintComponent(). The run method is being executed but it doesn't call the paintComponent();



I've read some things about a eventlistener that I should use. Could someone enlighten me?
14 years ago
I want to draw a line on a picture. The picture is being drawn on a jpanel.

Code voor JPanel with image


Code for drawing a line on the image



I have tried the following;


Could someone please tell me what i'm doing wrong.
14 years ago