/**
 * @(#)Text1.java
 *
 *
 * @author 
 * @version 1.00 2017/3/28
 */
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;

public class FrameMegasena extends JFrame implements ActionListener
{
		JPanel Painel_Norte, Painel_Sul, Painel_Centro, Painel_Leste, Painel_Oeste;
		JButton Botoes_Numeros [] = new JButton [60];
		int Contador = 0; 
    	public FrameMegasena() 
    	{
    			setLayout(new BorderLayout());
    			getContentPane().setBackground(Color.orange);
    			getContentPane().add("Center", Painel_Centro = new JPanel(new GridLayout(6, 10)));
 				while(Contador > 60)
 				{
 						Painel_Centro.add(Botoes_Numeros[Contador]);
 						Botoes_Numeros[Contador].setBackground(Color.BLUE);
 						if(Contador < 10)
 						{
 								Botoes_Numeros[Contador].setText("0"+Contador);
 						}
 						else
 						{
 								Botoes_Numeros[Contador].setText(""+Contador);	
 						}
 						
 						Contador++;
 				}
 				
 				this.setLocationRelativeTo(null);		
    			setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    			setResizable(false);	
    			setTitle("TELA MEGASENA");
    			//pack();
    			setSize(400,500);
    			setVisible(true);
    	
    	}
    	public static void main (String args [])
    	{
    			new FrameMegasena();
    	
    	}	
    	public void actionPerformed (ActionEvent e)
    	{
    		   	
    		
    	}
		
    
}