/* Creates percolation cluster with probability p and computes mass distribution */
/** * Renders (draws) the panel immediately. * * <p>Unlike repaint, the render method is draws the panel within the calling method's thread. * This method is called automatically if the frame is animated. */ public void render() { if (drawingPanel != null) { drawingPanel.render(); // simulations should render their panels at every time step } }