src/gui/model/SidePane.java
private synchronized void updateUI() {
        timeLabel.setText("Time: " + model.world.time);

        for (int x = 0; x < model.world.xDimension; x++) {
            for (int y = 0; y < model.world.yDimension; y++) {
                map.getCells()[x][y].update(model.getGlobalCrimeMax());
            }
        }
        notifyAll();
    }
/**
     * Refreshes the whole interface, including the map pane.
     * 
     * This is synchronised so that the model thread knows when
     * the UI is finished updating; this in turn allows the UI
     * to update after every iteration.
     */
Refreshes the whole interface, including the map pane.

This is synchronised so that the model thread knows when
the UI is finished updating; this in turn allows the UI
to update after every iteration.
Refreshes the whole interface including the map pane . This is synchronised so that the model thread knows when the UI is finished updating ; this in turn allows the UI to update after every iteration .
private synchronized void updateUI() {
        timeLabel.setText("Time: " + model.world.time);
        for (int x = 0; x < model.world.xDimension; x++) {
            for (int y = 0; y < model.world.yDimension; y++) {
                map.getCells()[x][y].update(model.getGlobalCrimeMax());
            }
        }
        notifyAll();
    }
private synchronized void updateUI ( ) { timeLabel . setText ( "Time: " + model . world . time ) ; for ( int x = 0 ; x < model . world . xDimension ; x ++ ) { for ( int y = 0 ; y < model . world . yDimension ; y ++ ) { map . getCells ( ) [ x ] [ y ] . update ( model . getGlobalCrimeMax ( ) ) ; } } notifyAll ( ) ; }
Refreshes the whole interface, including the map pane.
Refreshes the whole interface including the map pane .