Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
@ -85,8 +85,6 @@ public class Panel extends JPanel implements Runnable,KeyListener {
f.add(p);
f.addKeyListener(p);
f.setLocation((int) ((Toolkit.getDefaultToolkit().getScreenSize().getWidth() - f.getWidth()) / 2),
(int) ((Toolkit.getDefaultToolkit().getScreenSize().getHeight() - f.getHeight()) / 2));
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);