import java.awt.*;
import javax.swing.*;
import java.awt.FlowLayout;
import javax.swing.JCheckBox;
import javax.swing.JFrame;



public class Oxnar_CheckBox extends JFrame 
{
		private JCheckBox Cbx_java, Cbx_php, Cbx_csharp, Cbx_c, Cbx_html, Cbx_python;
		JPanel Painel_Centro, Painel_Leste, Painel_Norte, Painel_Norte1, Painel_Norte2;
		JPanel Painel_Oeste, Painel_Oeste0, Painel_Oeste0A, Painel_Oeste1,  Painel_Oeste2,  Painel_Oeste3,  Painel_Oeste4,  Painel_Oeste5;
		JButton bt_Grava, bt_Excluir, bt_Atualizar, bt_Cancelar, bt_Fechar;
		JLabel lbl_Cadastro;
		JTextField tf_Nome, tf_Idade; 
		JComboBox <String> Cbb_EstadoCivil       = new  JComboBox<String>(); 
		JComboBox <Integer> Cbb_DiaNascimento    = new  JComboBox<Integer>();
		JComboBox <Integer> Cbb_MesNascimento    = new  JComboBox<Integer>();			
		public Oxnar_CheckBox()
 		{
  				super("Que Linguagens você já sabe programar?");

  				setLayout( new BorderLayout() );
				//Criando painel ao norte do JFrame
				getContentPane().add("North", Painel_Norte = new JPanel(new GridLayout(2, 1)));
				Painel_Norte.add(Painel_Norte1  = new JPanel());
				Painel_Norte1.add(lbl_Cadastro  = new  JLabel("CADASTRO DO PROGRAMADOR"));
				Painel_Norte.add(Painel_Norte2  = new JPanel(new FlowLayout(FlowLayout.LEFT)));
				Painel_Norte2.add(new JLabel("NOME:"));
				Painel_Norte2.add(tf_Nome = new JTextField(20));
				//Criando o Painel_Oeste
				getContentPane().add("West", Painel_Oeste = new JPanel(new GridLayout(5, 1)));
				Painel_Oeste.add(Painel_Oeste0 = new JPanel());
				Painel_Oeste0.add(new JLabel("DATA DE NASCIMENTO"));
				//////////////////////////////////////////////////
				  
				Painel_Oeste.add(Painel_Oeste0A = new JPanel());
				Painel_Oeste0A.add(Cbb_DiaNascimento);
				Cbb_DiaNascimento.addItem(01);
				Cbb_DiaNascimento.addItem(02);
				Cbb_DiaNascimento.addItem(03);
				Cbb_DiaNascimento.addItem(04);
				Cbb_DiaNascimento.addItem(05);
				Cbb_DiaNascimento.addItem(06);				
				Cbb_DiaNascimento.addItem(07);
//				Cbb_DiaNascimento.addItem(08);
//				Cbb_DiaNascimento.addItem(09);				
//				Cbb_DiaNascimento.addItem(10);
				Cbb_DiaNascimento.addItem(11);
				Cbb_DiaNascimento.addItem(12);
				Cbb_DiaNascimento.addItem(13);
				Cbb_DiaNascimento.addItem(14);
				Cbb_DiaNascimento.addItem(15);
				Cbb_DiaNascimento.addItem(16);				
				Cbb_DiaNascimento.addItem(17);
				Cbb_DiaNascimento.addItem(18);
				Cbb_DiaNascimento.addItem(19);				
				Cbb_DiaNascimento.addItem(20);
				Cbb_DiaNascimento.addItem(21);
				Cbb_DiaNascimento.addItem(22);
				Cbb_DiaNascimento.addItem(23);
				Cbb_DiaNascimento.addItem(24);
				Cbb_DiaNascimento.addItem(25);
				Cbb_DiaNascimento.addItem(26);				
				Cbb_DiaNascimento.addItem(27);
				Cbb_DiaNascimento.addItem(28);
				Cbb_DiaNascimento.addItem(29);				
				Cbb_DiaNascimento.addItem(30);
				Cbb_DiaNascimento.addItem(30);
								
				Painel_Oeste0A.add(new JLabel("/"));
				Cbb_MesNascimento.addItem(01);
				Cbb_MesNascimento.addItem(02);
				Cbb_MesNascimento.addItem(03);
				Cbb_MesNascimento.addItem(04);
				Cbb_MesNascimento.addItem(05);
				Cbb_MesNascimento.addItem(06);				
				Cbb_MesNascimento.addItem(07);
				Cbb_MesNascimento.addItem(8);
				Cbb_MesNascimento.addItem(9);				
				Cbb_MesNascimento.addItem(10);
				Cbb_MesNascimento.addItem(11);
				Cbb_MesNascimento.addItem(12);

				
				//////////////////////////////
				Painel_Oeste.add(Painel_Oeste1 = new JPanel());
				Painel_Oeste1.add(new JLabel("IDADE:"));
				Painel_Oeste1.add(tf_Idade = new JTextField(5));
				Painel_Oeste.add(Painel_Oeste2 = new JPanel());
				
				Painel_Oeste2.add(Cbb_EstadoCivil);
				Cbb_EstadoCivil.addItem( "ESTADO CIVIL");
				Cbb_EstadoCivil.addItem( "CASADO (A)");
				Cbb_EstadoCivil.addItem( "SOLTEIRO (A)");
				Cbb_EstadoCivil.addItem( "DIVORCIADO (A)");
				Cbb_EstadoCivil.addItem( "OUTROS");
									
 			
  				//Criando os JCheckBox e adicionando ao paiel Centro
  				getContentPane().add("Center", Painel_Centro = new JPanel(new GridLayout(8, 1))); 
 			    Painel_Centro.add(Cbx_java 		= new JCheckBox("Java"));
  				Painel_Centro.add(Cbx_php 		= new JCheckBox("PHP"));
  				Painel_Centro.add(Cbx_csharp 	= new JCheckBox("C#"));
  				Painel_Centro.add(Cbx_c 		= new JCheckBox("C"));
  				Painel_Centro.add(Cbx_python 	= new JCheckBox("PYTHON"));
  				Painel_Centro.add(Cbx_html 		= new JCheckBox("HTML"));
  				//Colocando os botões no painel do Leste
  				getContentPane().add("East", Painel_Leste = new JPanel(new GridLayout(6, 1)));
  				Painel_Leste.add(bt_Grava		= new JButton("GRAVA"));
  				Painel_Leste.add(bt_Excluir 	= new JButton("EXCLUIR"));
  				Painel_Leste.add(bt_Atualizar	= new JButton("ATUALIZAR"));
  				Painel_Leste.add(bt_Cancelar	= new JButton("CANCELAR"));
  				Painel_Leste.add(bt_Fechar		= new JButton("FECHAR"));
  				
  		 
  				setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  				pack();
  				setVisible(true);
 		} //Fim do método construtor
 		public static void main(String[] args) 
 		{
  				new Oxnar_CheckBox();
 		}

}
