125126127128129130131132133134
/** Constructor */ public Particle2DPanel() { timer = new Timer(interval, new TimerListener()); this.setVisible(true); frameratedetector = new FrameRateDetector(500); s = InitialConditions.initRandomParticles(10, 2); }