Created
March 9, 2013 20:38
-
-
Save figengungor/5125637 to your computer and use it in GitHub Desktop.
Java GUI >> Creating a Simple Window(JFrame)
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("Tutorial"); | |
setSize(400,400); | |
setVisible(true); | |
setDefaultCloseOperation(EXIT_ON_CLOSE); | |
} | |
public static void main(String[] args) | |
{ | |
MyGUI frame = new MyGUI(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment