import javax.swing.*;

/**
 * @author Remi Forax
 */
public class BadDesign {

  public static void main(String[] args) {
    JFrame frame=new JFrame();
    
    JButton button1=new JButton("button 1");
    JButton button2=new JButton("button 2");
    button1.add(button2);
    
    frame.setContentPane(button1);
    frame.setTitle("HelloSwing");
    frame.setSize(400,300);
    frame.show();
  }
}
