首页 > > 详细

辅导Java、Java编程辅导、调试Java、Java编程调试、讲解留学生Java语言

package homework5;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTextField;
public class InputListener implements ActionListener {

private Sudoku sudoku;
public InputListener(Sudoku s){
if (s == null)
throw new IllegalArgumentException("Sudoku obj should not be null.");
this.sudoku = s;
}

@Override
public void actionPerformed(ActionEvent e) {
// Get the source object that fired the event
/* [TODO 2]
* All the 9*9 JTextFileds invoke this handler.
* 1.We need to determine which JTextField (which row and column) is the source for this invocation.
* 2.To check if user's input is correct.
* 3.To check if Game is over.
* Hint: please notice the member method defined in class Sudoku
*/
}
}
 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!