Last active
August 31, 2017 07:19
-
-
Save Lanace/257f256221319edd5ac6ec058f4bf083 to your computer and use it in GitHub Desktop.
Swing Window 창 띄우기
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.*; | |
public class App { | |
private JPanel jPanel; | |
public static void main(String args[]) { | |
JFrame frame = new JFrame("App"); | |
frame.setContentPane(new App().jPanel); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
frame.pack(); | |
frame.setVisible(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment