In Java, AWT, repaint-method seems to be ignored in favor of start-method
问题 I'm building an applet of a board game, and handling user input roughly looks like this: public void mousePressed(MouseEvent event) { int row = event.getX() / (getSize().width / 8) ; int column = event.getY() / (getSize().height / 8) ; if(possibleMove(column, row) { makeMove(column,row,whosTurn); repaint(); start(); } } After a human input, the computer chooses a move and calls repaint() and start() like this method does. But the screen seems to update only after the computer has made a move,