import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GridLayoutEx extends JFrame { public GridLayoutEx (){ setLayout(new GridLayout(0, 4)); //GridLayout(행, 열) setTitle("GridLayout 입니다"); setSize(300, 300); setLocationRelativeTo(null); //화면 중앙에 생성 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); JButton bt1 = new JButton("버튼1"); JButton ..