You can remove the entire title of the dialog by calling dialog.setUndecorated(true) , but this means that the dialog can no longer be moved.
You can also do dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE) so that the button does nothing.
Also, I don't think there is a way to completely remove X
Huxi Jun 02 '09 at 22:39 2009-06-02 22:39
source share