Reputation: 1
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?
Upvotes: 0
Views: 159
Reputation: 324108
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.
Upvotes: 1