I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap.
What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, but when you click on the game again, the minimap may not show or is still not on top.
What I want is so that once the game is brought into focus (they are playing the game) the minimap is shown next to it, on top.
I hope that makes sense.
Any help is appreciated.