How to Disable Jframe X

Asked

Viewed 15 times

0

How to disable X from a frame?

The below option I found just doesn’t perform close action:

frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

I need the X button of the frame to be disabled and not allow clicking.

  • You need to take the button off?

  • Yes, but without removing the outline of the frame where the title is written if possible

  • I want him not to show

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.