Boris Pavlović
Boris Pavlović

Reputation: 64622

How to remove the active title bar of a frame?

I have a JFrame which displays a title bar. Active title bar as it's called in Windows desktop properties. How to remove this bar?

Upvotes: 0

Views: 1961

Answers (2)

Varun
Varun

Reputation: 1004

You can use setUndecorated(boolean undecorated) method in JFrame.

Note: This method can only be called while the frame is not displayable.

Upvotes: 3

Aditya Mukherji
Aditya Mukherji

Reputation: 9256

frames have titlebars
windows do not
check out http://academicjava.com/Java_help/Tutorial_Examples_Swing_5.html for examples

Upvotes: 0

Related Questions