δve got à strange issue in a Java app made with Netbeans. It´s a memory card game. The main class is a JFrame that holds à panel the same size. The Panel is subdivided with a Grid Layout with each cell holding à card, an other class designed with à little panel and à label. That´s for the Design. The source of the main class bears many functions for the game and the one which occurs when game is over, a third JDialog class, must also reset the whole board and there comes The Bug, when the function uses the method removeAll(). It does removeAll() but the result only appears on screen once the user resizes the JFrame. There must be an other method to refresh the panel automatically. Will I have to read the full JavaWiki to find my answer ?
Thank you