I have a simple puzzle game. There is an image consisting of 16 tiles (randomly placed). Images are stored in an array and when game is launched they\'re added to main JPane
After changing the components, you need to 'refresh' the Swing component by calling invalidate() or revalidate().
invalidate()
revalidate()