import javax.swing.JFrame;


public class Test extends JFrame{

	public Test(){
		super("Test"); // JFrame의 생성자에 값을 입력하면 윈도창에 해당 값이 입력됩니다. 
		setSize(400, 300); // 윈도우의 크기 가로x세로
		setVisible(true); // 창을 보여줄떄 true, 숨길때 false
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // x 버튼을 눌렀을때 종료
	}

	public static void main(String[] args){
		new Test();
	}
}


Posted by 세이나린
,