Skip to content

Instantly share code, notes, and snippets.

@figengungor
Created March 9, 2013 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save figengungor/5125637 to your computer and use it in GitHub Desktop.
Save figengungor/5125637 to your computer and use it in GitHub Desktop.
Java GUI >> Creating a Simple Window(JFrame)
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