02-25-2002, 01:05 AM
|
#1
|
|
Member (9 bit)
Join Date: Dec 2001
Location: US
Posts: 468
|
Question about java repaint method ?
I am trying to write a program which allow the user to draw a line continuously. which i used the repaint method to redraw the line continuously the problem that i am having is that the line keep drawing to itself. is there anyway i can use repaint method to return to the next line after finish drawing one line instead everytime overlapping itself. Also, how can i clear an area let say after 100 lines have been drawing. Can u please help me out. Also how can i use the random function to randomly drawing a line. an using Timere method inside the java.swing* package. thanks i hope u can help me out
|
|
|