# Java JFrame has no close button

**URL:** <https://forum.kirupa.com/t/java-jframe-has-no-close-button/270064>\
**Category:** programming\
**Created:** [September 4, 2008, 8:48pm UTC](https://forum.kirupa.com/t/java-jframe-has-no-close-button/270064 "2008-09-04T20:48:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [September 4, 2008, 8:48pm UTC](https://forum.kirupa.com/t/java-jframe-has-no-close-button/270064/1 "2008-09-04T20:48:03Z")

</div>

Everytime I use simple JFrame code from some tutorial, I see what’s in the window, but I have no minimize/close buttons. I’m SSH’ing into the school computer with XManager.

Examples:  
[http://www.javabeginner.com/jframe.htm](http://www.javabeginner.com/jframe.htm)  
[http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JFrame.html](http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JFrame.html)

Those tutorials promise things like:  
 ![](http://forum.kirupa.com/uploads/kirupa/4907/a45d2d3bbafa2df5.jpg)  
 ![](http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/SimpleExamples/JFrameExample-W.gif)

But why do I only see the insides of the window with no chrome? And it’s always crammed to the upper left corner of my screen.
