package CHAP09;

 import javax.swing.*;
 import java.awt.*;

 public class C10_10_NoLayoutExample extends JFrame {
 public C10_10_NoLayoutExample() {
 setTitle("NoLayout Example");
 setSize(400, 200);
 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

 setLayout(null);

 JButton button = new JButton("고정 위치 버튼");
 button.setBounds(50, 50, 150, 30); 
 add(button); 
 }

 public static void main(String[] args) {
 C10_10_NoLayoutExample frame = new C10_10_NoLayoutExample();
 frame.setVisible(true);
 } }