Курсовая работа: Java-гра Тетріс
menuBar = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
menuNewGame = new javax.swing.JMenuItem();
menuPauseGame = new javax.swing.JMenuItem();
jSeparator1 = new javax.swing.JSeparator();
menuFileExit = new javax.swing.JMenuItem();
tetrisGamePanel1 = new Tetr.TetrisGamePanel();
menuBar1 = new javax.swing.JMenuBar();
jMenu2 = new javax.swing.JMenu();
menuNewGame1 = new javax.swing.JMenuItem();
menuPauseGame1 = new javax.swing.JMenuItem();
jSeparator2 = new javax.swing.JSeparator();
menuFileExit1 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setFocusable(false);
jMenu1.setText("File");
menuNewGame.setText("Item");
jMenu1.add(menuNewGame);
menuPauseGame.setText("Item");
jMenu1.add(menuPauseGame);
jMenu1.add(jSeparator1);
menuFileExit.setText("Item");
jMenu1.add(menuFileExit);
menuBar.add(jMenu1);
tetrisGamePanel1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
tetrisGamePanel1KeyPressed(evt);
}
});