diff --git a/src/main/java/PingPong/Paddle.java b/src/main/java/PingPong/Paddle.java index 878807c..5d14044 100644 --- a/src/main/java/PingPong/Paddle.java +++ b/src/main/java/PingPong/Paddle.java @@ -59,8 +59,12 @@ public class Paddle extends Rectangle { g.setColor(Color.BLUE); g.fillRect(x, y1, width, height); } else { - g.setColor(Color.YELLOW); + Paddle1(g); g.fillRect(x, y2, width, height); } } + + private static void Paddle1(Graphics g) { + g.setColor(Color.YELLOW); + } }