Possible Duplicate:
How to disable (or hide) the close (x) button on a JFrame?
I want the frame to have a deactivated close button, but I don't want to do frame.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE )
;
nor frame.setUndecorated(true)
.
I want the frame to appear but the close button should look inactive/disabled.
If we cant achieve this in JFrame
is there a way to do this? You suggestions will be of great help.