diff --git a/src/main/java/edu/project/components/WeatherCard.java b/src/main/java/edu/project/components/WeatherCard.java index 12faee1..30e31ad 100644 --- a/src/main/java/edu/project/components/WeatherCard.java +++ b/src/main/java/edu/project/components/WeatherCard.java @@ -58,7 +58,7 @@ protected void paintComponent(Graphics graphics) { Graphics2D graphics2d = (Graphics2D) graphics; graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics2d.setColor(Color.LIGHT_GRAY); - graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16 * 2, 16 * 2); + graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16, 16); super.paintComponent(graphics); } } diff --git a/src/main/java/edu/project/components/WeatherIsland.java b/src/main/java/edu/project/components/WeatherIsland.java index e214fc9..3f2e498 100644 --- a/src/main/java/edu/project/components/WeatherIsland.java +++ b/src/main/java/edu/project/components/WeatherIsland.java @@ -50,7 +50,7 @@ protected void paintComponent(Graphics graphics) { Graphics2D graphics2d = (Graphics2D) graphics; graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics2d.setColor(getBackground()); - graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16 * 2, 16 * 2); + graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(), 16, 16); super.paintComponent(graphics2d); } }