This content has been marked as final. Show 3 replies
What you can do is make the frame undecorated, but then you lose the entire window frame including the title bar and the resize options.
Nearly every application on this planet has the close button just there; users expect it to be there. Go with the flow and design your software such that the user can properly close the application in the way he/she is used to.
I want to make a way to exit manually without click close button.
I know I can set DO_NOTHING on defaultCloseOperation but I want to make my application look better.
Well, hiding the frame's close button won't make it look better. That will just make it look slightly peculiar.