Курсовая работа: Java-гра Тетріс
Sequence seq = MidiSystem.getSequence(f);
sequencer.setSequence(seq);
sequencer.start();
sequencer.setLoopCount(1000);
}catch(Exception e){
System.err.println(e);
}
}
public void actionPerformed(ActionEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
Файл TetrisFrame.java
package Tetr;
import Tetr.TetrisGamePanel;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
/**
*
* @author irdis_13
*/
public class TetrisFrame extends javax.swing.JFrame {
/** Creates new form TetrisFrame */
public TetrisFrame() {
initComponents();
tetrisGamePanel1.grabFocus();
}
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {