¡Hello!
I'm programming a simple game; I want to disable the main window (JFrame) when the game is over and only allow to use the menu bar in order to create new game, change level, quit or whatever, but disable all the rest of the window. The behaviour would be like the minesweeper of windows.
I've tried usingbut it disables all the window belong to the menu bar, this happen even I usemainWindow.setEnabled(false)after that.menuBar.setEnabled(true)
All suggestions are welcome.