Skip to content

Instantly share code, notes, and snippets.

@figengungor
Created March 10, 2013 21:21
Show Gist options
  • Save figengungor/5130484 to your computer and use it in GitHub Desktop.
Save figengungor/5130484 to your computer and use it in GitHub Desktop.
Java GUI >> Non-resizable window frame
import javax.swing.JFrame;
public class MyGUI extends JFrame {
public MyGUI(){
setTitle("Non-resizable frame");
setSize(300,300);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setResizable(false); //Window frame will not be resized.
}
public static void main(String [] args) {
new MyGUI();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment