I wan’t to make my main JFrame become darken when the focus is on another window.
This is an example from the game Football Manager 2012. First the main window is selected and it looks like it should, then when it is loading, it turns darker and unselectable. I wan’t to have this effects on my own application, but im not really sure how, not even sure what to google?
Im guessing its a JWindow that appears and the JFram becomes unselectable in the background. I’m planing to use it on a help-window in my application, that is a JWindow right now.


Andrew Thompson has the right idea, only it’s easier to use the glass pane feature of your frame’s
JRootPane. Here’s some working code: In your frame class, invokeThen, to show the “curtain”, invoke
In the code above, change the alpha transparency value of 100 in order to find the suitable darkness.
It works in this example.