|
@ -40,7 +40,7 @@ public class MenuPanel extends JPanel { |
|
|
|
|
|
|
|
|
public void keyPressed(KeyEvent e) { |
|
|
public void keyPressed(KeyEvent e) { |
|
|
if (e.getKeyCode() == KeyEvent.VK_1) { |
|
|
if (e.getKeyCode() == KeyEvent.VK_1) { |
|
|
new PingPong.GamePanel(); |
|
|
|
|
|
|
|
|
new PingPong.GameFrame(); |
|
|
} |
|
|
} |
|
|
if (e.getKeyCode() == KeyEvent.VK_2) { |
|
|
if (e.getKeyCode() == KeyEvent.VK_2) { |
|
|
BShip game = new BShip(); |
|
|
BShip game = new BShip(); |
|
|