开发者

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 )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜