Created
March 10, 2013 21:21
-
-
Save figengungor/5130484 to your computer and use it in GitHub Desktop.
Java GUI >> Non-resizable window frame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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