Make JFrame / JPanel unclickable
I have a JFrame with an associated JPanel which fill the screen, both having setFocusable(false)
and in Front another JFrame with a Jpanel with a fixed size and centered (both are unmoveable). In this 'front' Panel theres a game, but wh开发者_如何学Goen i click on the background Frame the front Panel moves to the background i only see the (dark grey) background Panel.
This is very annoying as you can imagine and i guess there must be a simple solution (i thought the setFocusable(false) would do the trick) but i simply cannot find it
Have you tried JFrame.setAlwaysOnTop( true )
精彩评论