Hi everybody.
Here's my problem: I'm trying to code a GUI for a chess game. I want to ensure that when an AI plays, the user sees the piece of the chosen move moving.
To do this, I change the coordinates of the piece and draw it in a JPanel which contains the chessboard. I refresh the screen regularly to get the movement of the piece.
The piece moves very well, without aany problem, but other components than the chessboard (for example a list of notation of moves played) are impacted and cause strange and unexpected things.
To refresh the screen regularly I use a timer which regularly calls the paintImmediately() method on the JPanel displaying the chessboard.
I suspect that I must have done things incorrectly but I can't find a solution.
Any help will be welcome.
Thank you in advance.
P.S. sorry for my english.
P.S. I tried to attach an image to this message, but could not manage.