private void resize() {
        size = getSkinnable().getWidth() < getSkinnable().getHeight() ? getSkinnable().getWidth() : getSkinnable().getHeight();                       
        if (size > 0) {                        
            for (Region led : leds) {
                led.setPrefSize(size, size);
            }                                        
        }
    }