Skip to content

Instantly share code, notes, and snippets.

@twopoint718
Created June 7, 2009 02:31
Show Gist options
  • Save twopoint718/125111 to your computer and use it in GitHub Desktop.
Save twopoint718/125111 to your computer and use it in GitHub Desktop.
Minimal "popup" example
import javax.swing.JFrame;
import javax.swing.JLabel;
public class frame
{
public static void main(String[] args)
{
JFrame f = new JFrame();
f.add(new JLabel("This is a window."));
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setVisible(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment