Hello

I have written a simple frame using Swing (JFrame) and the style of the window frame is annoying me.

The attached image shows two possible styles.
The bottom style is the one I am getting.
The top style is the one I am after.

Can anyone tell me how I can change style?

thanks