Disable « JOptionPane « Java Swing Q&A





1. Disabling the close x in a JOptionPane    stackoverflow.com

I would like to disable the close x in the upper left corner of my JOptionPane how would I do this?

2. Disable publishing JOptionPane on application    stackoverflow.com

Greetings everyone. I have a problem which i can solve. I need that JOptionPane does not showing in my application maybe there some way to make this. Best regards Alejandro Del ...

3. JOptionPane how to disable the X?    stackoverflow.com

If the user clicks X on the top right, I don't want anything to happen. What is the code line to make this happen?

Object [] options1 = {"Go Back", "Accept"};
 int ...

6. Disable ESC on JOptionPane    forums.oracle.com

Hi all, I'm using JOptionPane.showOptionDialog to show a dialog, but I'd like to disable the ESC key, so when the user presses ESC, the dialog will not close. Is there any way to do that? Could somebody give me an example, or give me a link showing the directions on how to do it? thanks in advance