Update WindowSizeCalculator.java