![[Swing] 프레임 만들기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fw88eC%2FbtqEcmyy8he%2FAAAAAAAAAAAAAAAAAAAAANyPL8iWGI4qKzH1T2PPYeX70LLUeB0XocVKqPafH7-Q%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D5iaKvEqM3520YnwQx2JzwuLLV%252BQ%253D)
Java2020. 5. 18. 10:01[Swing] 프레임 만들기
package swing.frame; import javax.swing.JFrame; public class MyFrame extends JFrame { public MyFrame(String title) { this.setTitle(title); //this없어도됨 //title설정 this.setSize(680, 700);//size설정(width,height) setLocation(800, 300); //위치 설정(x,y) //종료관리(보통 EXIT_ON_CLOSE를 사용, 상수3) setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //창그리기 this.setVisible(true); } public static void main(String[] args) { /..