![[Swing] JFrame 계산기 만들기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fm0fRg%2FbtqFniBpru4%2FAAAAAAAAAAAAAAAAAAAAABwC1S5UaVaj-hIgPWueKJ5f2zFmBUdvqROwzcsvuTVs%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DlWiHrtmp6OECapfT7JSNJaCceuU%253D)
package swing.frame; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class Calculator extends JFrame { public Calculator(String title) { //this없어도됨 //title설정 setTitle(title); //size설정(width,height) setSize(230, 400);..
![[Swing] GridLayoutFrame](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FOMhOZ%2FbtqFnuVYC3b%2FAAAAAAAAAAAAAAAAAAAAAHNCXtyu7cyBbdLGC7b3Xjvhy9nPY-t_llcKs2ZIbmtq%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D1Hh%252FsZHh%252FV%252F5KkKggZ%252Bty4FsGH0%253D)
package swing.frame; import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; public class GridLayoutFrame extends JFrame { public GridLayoutFrame(String title) { //this없어도됨 //title설정 setTitle(title); //size설정(width,height) setSize(300, 300); //위치 설정(x,y) setLocation(800, 300); //종료관리(보통 EXIT_ON_CLOSE를 사용, 상수3) s..
![[Swing] FlowLayout](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FXypDV%2FbtqFnEjHuBl%2FAAAAAAAAAAAAAAAAAAAAAAlzrj9HrfBvyJ7_gqmOZeKpQde-RF-_G0nHnDgT8U4n%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dn6yIcfYohT%252FWSER%252B3%252Binr4381y8%253D)
package swing.frame; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class FlowLayoutFrame extends JFrame { public FlowLayoutFrame(String title) { //this없어도됨 //title설정 setTitle(title); //size설정(width,height) setSize(300, 300); //위치 설정(x,y) setLocation(800, 300); //종료관리(보통 EXIT_ON_CLOSE를 사용, 상수3) setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //레이아웃 setL..
![[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)
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) { /..