Yoda
Yoda

Reputation: 18068

Setting no controls in java

How to set that JFrame will not have any controls (no close, minimize, maximize), I remember something decorate..?

Upvotes: 0

Views: 59

Answers (1)

Maroun
Maroun

Reputation: 96018

See public void setUndecorated(boolean undecorated)

Disables or enables decorations for this frame. This method can only be called while the frame is not displayable.

BTW, to be honest, I forgot the method name, but I just wrote "remove buttons from JFrame" in google and found the answer. Doing a very small research can sometimes really help.

Upvotes: 7

Related Questions