数据表MVC中的时间

时间:2018-08-12 18:42:58

标签: asp.net-mvc asp.net-mvc-4 asp.net-ajax

你好,我只想在数据表中显示时间,但是它显示[object object]这是代码

public class Toebuttons extends JButton implements ActionListener
{
boolean x = true; // if true x's turn if false o's turn
int count = 0;
public Toebuttons()
{
   super("blank");
   this.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
   if(this.x == true)
   {
       count++;
       System.out.println(count);
       setText("X");
       this.x = false;
   }
   else if(this.x == false)
   {
       count++;
       System.out.println(count);
       setText("O");
       this.x = true;
   }
  }
}

enter image description here

0 个答案:

没有答案