改正错误

xzjxucxx xzjxucxx 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package wuzi;
import java.awt.*;
/**
*
* @author Administrator
*/
public class Wuzi extends Frame{

/**
* @param args the command line arguments
*/
public static final int mm=15;
public static int n;
public int qp[][]=new int[mm][mm];
public static void main(String[] args) {
// TODO code application logic here
Wuzi myFrame=new Wuzi();
myFrame.setVisible(true);
}
public Wuzi(){
super();
final GridLayout gridLayout=new GridLayout(mm,mm);
gridLayout.setHgap(0);
gridLayout.setVgap(0);
Panel panel=new Panel();
panel.setLayout(gridLayout);
add(panel,BorderLayout.CENTER);
qz qzs[][]=new qz[mm][mm];
for(int row=0;row<mm;row++){
for(int col=0;col<mm;col++){
qzs[row][col]=new qz(row,col);
qzs[row][col].addMouseListener(new MouseListenter(){
public void mouseClicked(MouseEvent e){
qz qz1=(qz)e.getSource();

}
});
panel.add(qzs[row][col]);
}
}
}
}
class qz extends Panel{
public int i,j;
public qz(int row,int col){

}
}


请看错误在哪儿,请改正
...全文
评论 1
收藏 已收藏
分享
返回顶部
xzjxucxx
Java SE 62,620 成员 307,251 内容