开发者

How to bring JOption pop up window to front?

I am working on my first project and it requires a JOption window to open for us开发者_如何学Cer input. it works but the window is behind everything else so I have to minimize the editor to input the info. How do I bring the window to the top?


I've never seen this behaviour. The only thing I can think of is to make sure you specifify the "owner" frame when you show the option pane.

Read the JOptionPane API and follow the link to the Swing tutorial on "How to Make Dialogs" for working examples.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜