I tried the new math way to do the (#3 (permalink)) problem i posted, after the math, i did
private class TimeStamp implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
Action += 2;
repaint();
if (Action >= RunDistance)
{
Action = 0;
}
}
}
and the 4 Balls are not moving,
RunDistance = (int) Math.pow( (double)(ROW*ROW+COL*COL), 0.5d );
is what i did in paint(). help.
i'm trying to make 4 balls move on the hypo. of the trangle in the rectangle(this is the way i'm thinking), and make them tangent to the frame window when they get to the coners.