Sudoku Implemented with Java-Swing I've used Singleton Pattern for the JPanel, therefore, only one JPanel can exist What is Singleton Pattern? -> https://www.tutorialspoint.com/design_pattern/singleton_pattern.htm