[Java Code] 배치 관리자 1 - FlowLayout 구현


[Java Code] 배치 관리자 1 - FlowLayout 구현

코드 public class FlowLayoutEx extends JFrame { private final int BUTTON_COUNT = 6; // 버튼 개수 private JButton[] buttons = new JButton[BUTTON_COUNT]; private FlowLayout flowLayout; public FlowLayoutEx3() { initData(); setInitLayout(); } private void initData() { setTitle("FlowLayout 구현"); setSize(500, 500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // 버튼 인스턴스화 for (int i = 0; i < BUTTON_COUNT;..


원문링크 : [Java Code] 배치 관리자 1 - FlowLayout 구현