I have a frame, which occupies almost all the screen, and at some point, if you press some buttons, a JOptionPane opens with a message. The problem is that the JOptionPane opens right below the end of my Frame, and only a very small part of it is visible. Does anybody know if I can modify the position of a JOptionPane on the screen? I want to put it in the center.