Курсовая работа: Java-гра Тетріс
public void continueButtonPressed(ActionEvent evt) {
TetrisGamePanel p = (TetrisGamePanel)tetrisGamePanel1;
p.resumeGame();
}
public void pauseButtonPressed(ActionEvent evt) {
TetrisGamePanel p = (TetrisGamePanel)tetrisGamePanel1;
p.pauseGame();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private Tetr.ButtonPanel buttonPanel1;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JMenuBar menuBar;
private javax.swing.JMenuBar menuBar1;
private javax.swing.JMenuItem menuFileExit;
private javax.swing.JMenuItem menuFileExit1;
private javax.swing.JMenuItem menuNewGame;
private javax.swing.JMenuItem menuNewGame1;
private javax.swing.JMenuItem menuPauseGame;
private javax.swing.JMenuItem menuPauseGame1;
private Tetr.TetrisGamePanel tetrisGamePanel1;
}
Файл TetrisGamePanel.java
package Tetr;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;