Created
June 7, 2009 02:31
-
-
Save twopoint718/125111 to your computer and use it in GitHub Desktop.
Minimal "popup" example
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; | |
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