import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;

import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
public class Calculadora10 extends JFrame implements ActionListener
{
   
  	 	JButton bt_zero;
   		JButton bt_um;
   		JButton bt_dois;
   		JButton bt_tres;
   		JButton bt_quatro;
   		JButton bt_cinco;
   		JButton bt_seis;
   		JButton bt_sete;
   		JButton bt_oito;
   		JButton bt_nove;
   		JPanel Painel_Botoes;
   		JTextField tf_Display 			= new JTextField(10);
   		public Calculadora10()
   		{
      			super("Calculadora");
      			getContentPane().setLayout(new BorderLayout());//criar layout
				getContentPane().add("North", tf_Display);
				
				getContentPane().add("Center", Painel_Botoes 	= new JPanel(new GridLayout(4, 3)));
				
      			Painel_Botoes.add(bt_zero=new JButton("0"));
      			
      			Painel_Botoes.add(bt_um=new JButton("1"));
      			
      			Painel_Botoes.add(bt_dois=new JButton("2"));
      			
      			Painel_Botoes.add(bt_tres=new JButton("3"));
      			/*bt_quatro=new JButton("4");
      			getContentPane().add(bt_quatro);
      			bt_cinco=new JButton("5");
      			getContentPane().add(bt_cinco);
      			bt_seis=new JButton("6");
      			getContentPane().add(bt_seis);
      			bt_sete=new JButton("7");
      			getContentPane().add(bt_sete);
      			bt_oito=new JButton("8");
      			getContentPane().add(bt_oito);
      			bt_nove=new JButton("9");
      			getContentPane().add(bt_nove);
      			bt_zero.addActionListener(this);
      			bt_um.addActionListener(this);
      			bt_dois.addActionListener(this);
      			bt_tres.addActionListener(this);
      			bt_quatro.addActionListener(this);
      			bt_cinco.addActionListener(this);
      			bt_seis.addActionListener(this);
      			bt_sete.addActionListener(this);
      			bt_oito.addActionListener(this);
      			bt_nove.addActionListener(this);*/
      			pack();
      			setVisible(true);
   		}//fim do método construtor
		public void  actionPerformed(ActionEvent event)
      	{
         		if (event.getSource() == bt_zero ) 
          			{}
         		if (event.getSource() == bt_um ) 
         			{}
         		if (event.getSource() == bt_dois ) 
                  	{}         
                if (event.getSource() == bt_tres ) 
         			{}         
         		/*if (event.getSource() == bt_quatro ) 
         			{}        
         		if (event.getSource() == bt_cinco ) 
                 	{}        
         		if (event.getSource() == bt_seis ) 
                  	{}        
         		if (event.getSource() == bt_sete ) 
                	{}        
         		if (event.getSource() == bt_oito ) 
                 	{}
         		if (event.getSource() == bt_nove ) 
         		{
     					JOptionPane.showMessageDialog(null,"oi");
         		}*/
      	}
   		public static void main (String args [])
   		{
   				new Calculadora10();
   		}	
}