你好,我只想在数据表中显示时间,但是它显示[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;
}
}
}