日期:2014-05-20 浏览次数:20622 次
public void actionPerformed(ActionEvent arg0) {
if (jTextField1 != null) {
for (int i = 0; i < gamer.length; i++) {
gamer[i] = new Player();
String gamersName = jTextField1.getText();
gamer[i].name = gamersName;
this.dispose();
}
for (int j = 0; j < gamer.length; j++) {
System.out.println(gamer[j].toString()+j);
System.out.println("ending....");
}
}
}