import javax.swing.ImageIcon;

import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.util.*;

import java.awt.geom.*;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.event.ActionListener;

public  class buttons extends JPanel   {
   public  JButton b1_2,b3_4,b5_6,b7_8,b9_10,b11_12,b13_14;

   //public JTextField tamano;   //creando campo de texto para ingrasar   tamaņo del cuadrado
	public buttons()// RECIBE
   {
      //-----------------------------------------------------------------------------

		b1_2=new JButton("1-2");
		b1_2.setBackground(Color.yellow);
		b3_4=new JButton("3-4");
		b3_4.setBackground(Color.yellow);
		b5_6=new JButton("5-6");			//EN ESTA CLASE SE CREA UN PANEL CON LOS BOTONES REFERENTES
		b5_6.setBackground(Color.yellow);	// A LOS BLOQUES HORARIOS DEL DIA
		b7_8=new JButton("7-8");			//
		b7_8.setBackground(Color.yellow);
		b9_10=new JButton("9-10");
		b9_10.setBackground(Color.yellow);
		b11_12=new JButton("11-12");
		b11_12.setBackground(Color.yellow);
		b13_14=new JButton("13-14");
		b13_14.setBackground(Color.yellow);
//--------------------------------------------------------------------------------------------
	  	add(b1_2);
		add(b3_4);
		add(b5_6);					//AQUI SE AGREGAN LOS BOTONES AL PANEL
		add(b7_8);
		add(b9_10);
		add(b11_12);
		add(b13_14);
//---------------------------------------------------------------------------------------

 		b1_2.setActionCommand("b1_2");
  		b3_4.setActionCommand("b3_4");		//SETEQANDO LAS ACTIONCOMAND PARA DEPUES PODER IDENTIFICARLOS A
  		b5_6.setActionCommand("b5_6");		// LA HORA DE SER PRESIONADOS POR EL USUARIO
  		b7_8.setActionCommand("b7_8");
  		b9_10.setActionCommand("b9_10");
  		b11_12.setActionCommand("b11_12");
  		b13_14.setActionCommand("b13_14");
   ///***********************************§§§§§§§§§§§*************************
   }




}
