. . 东西绝对不多说,直接看!看了拷贝就懂了!!,直接可以拷贝下面的东西,然后记得把那个 BLOCK的名字改成你自己的类名,这个很关键哦,不然是错的可别怪我,呵呵~~ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.applet.*; import java.lang.String.*; import java.lang.*; import java.io.*; publicclass Block extends JPanel implements ActionListener,KeyListener// 应该是继承 JPanel{ static Button but [] = new Button[6]; static Button noStop = new Button(" 取 消 暂 停" ); static Label scoreLab = new Label(" 分数 :" ); static Label infoLab = new Label(" 提示 :" ); static Label speedLab = new Label(" 级数 :" ); static Label scoreTex = new Label("0" ); static Label infoTex = new Label(" " ); static Label speedTex = new Label("1" ); static JFrame jf = new JFrame(); static MyTimer timer ; static ImageIcon icon =new ImageIcon("resource/Block.jpg"); static JMenuBar mb = new JMenuBar(); static JMenu menu0 = new JMenu( " 游戏 " ); static JMenu menu1 = new JMenu( " 帮助 " ); static JMenuItem mi0 = new JMenuItem( "新 游 戏" ); static JMenuItem mi1 = new JMenuItem( "退出 " ); static JMenuItem mi1_0 = new JMenuItem( " 关于 " ); static JDialog dlg_1 ; static JTextArea dlg_1_text = new JTextArea(); staticintstartSign = 0;// 游戏开始标志 0 未开始 1 开始 2 暂停static String butLab[] = {" 开 始 游 戏 " , "重 新 开 始 " , " 降 低 级 数" , " 提 高 级 数" , " 游 戏 暂 停" , "退 出 游 戏" }; staticintgame_body[][] = new int [19][10]; staticintgame_sign_x[] = new int [4];// 用于记录 4个方格的水平位置staticintgame_sign_y[] = new int [4];// 用于记录 4个方格的垂直位置staticbooleandownSign = false ; // 是否落下staticintblockNumber = 1;// 砖块的编号staticintgameScore = 0;// 游戏分数staticintspeedMark = 1; . . publicstaticvoid...