// Introduction to Swing --
// Creates two buttons....
// Review topics:
// constructor, inheritance.... 


import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Button extends JFrame {
  
  public Button () {
  	JButton b1 = new JButton("Button 1");
    JButton b2 = new JButton("Button 2");
    Container cp = getContentPane();
    cp.setLayout(new FlowLayout());
    cp.add(b1);
    cp.add(b2);
  }
  
  
  public static void main(String[] args) {
        JFrame frame = new Button();
        frame.pack();
        frame.setVisible(true);
  }
} 



