@ -23,6 +23,7 @@ public class Paddle extends Rectangle {
this.id = id;
}
public void pressed(KeyEvent e) {
@ -53,4 +54,13 @@ public class Paddle extends Rectangle {
public void draw(Graphics g) {
if (id == 1) {
g.setColor(Color.BLUE);
g.fillRect(x, y1, width, height);
} else {
g.setColor(Color.YELLOW);
g.fillRect(x, y2, width, height);