Hi Guys,

I am a newbie to javafx and been having lots of issues in developing an application to animate multiplication and division with negative and positive numbers.

I hope you guys would go easy on me.

This is what I aim to achieve.

There are two text box that accept negative and positive numbers. When you enter X number in the first text box, X circles would animate with a green for positive and red for negative. Next you select an operation (multiplication or division). If multiplication, the second textbox accepts the number to be multiply Y. Y circles with respective color is then added to the set of X circles earlier. Then you will click on the answer button; the circles will then move in groups of Y units to a rectangle until there are no circles left. When the circles cross the border of the rectangle it would change the circles colors into the color representation of the result of the said operation (multiplication).

The process for division is the opposite, where the circles are first drop into the the rectangle and then remove by units based on the number being divided by. Also no circles are drop when its division for the second text box.

Currently when you enter a positive number in the first textbox green circles would drop down and negative numbers would give red.

Find attached of what it would look like.

The problems I am having are,

1. After entering a number in the text box the other components seem to freeze and you can't click on it

2. In the second text box I want to add X amount of balls to the existing set from the first text box. I tried storing the coordinates in a array and update the coordinates and draw it back but only the last set gets drawn.

3. I am not able to move the balls from the existing position to move them by units into the rectangle. i tried the same array idea in number 2 but same problem.

In summary I am not able to move the balls again after its drawn, along with updating it with more balls to the panel and the other components freeze after entering a number in the textbox.

Also pathTransition.setDuration() does not exist or I don't know how that is not working. I am using Netbeans

IDE 7.3

Any ideas would be great of what else to try am out of ideas of what else to try and research online.

Thank you if anyone can guide me in what steps to take to resolve the issues I am facing.

Ghansham.