简体   繁体   中英

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 user 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM