Simulation of Double Pendulum implemented in JavaSwing