Thursday 3 October 2013

How doe i draw a line in a for loop in java?

How doe i draw a line in a for loop in java?

Im a very beginner in java. How draw a line from _x1, y to _x2,y using
image in a for or a while loop? i also have to take care of the length of
my object in the JLabel. thanx in advance
public void Plotline(int _x1, int _x2, int _y)
{
Color tmp_color = new Color(0);