This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
JOptionPane has methods which take a component as an argument, like this:
Anyway, when the JOptionPane is asking the user if the user wants to save the file, the frame is unusable. I want to do that to a frame. I used frame.setFocusable(false); but it didn't work. Even after I called that method, I was still able to focus on the frame by clicking it.
How can I do it?