package promotionSystem.interfazGrafica;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Registrarse extends JFrame {

	public Registrarse(){
		LaminaRegistro lamina=new LaminaRegistro();
		setTitle("Registrarse");
		setBounds(0,0,600,600);
		add(lamina);
		
	}
	
	

}

 class LaminaRegistro extends JPanel{
	 
	 public LaminaRegistro(){
		 setLayout(new BorderLayout());
		 LaminaCentral laminaC =new LaminaCentral();
		 LaminaNorte laminaN=new LaminaNorte();
		 LaminaSur laminaS=new LaminaSur();
		 add(laminaC,BorderLayout.CENTER);
		 add(laminaN,BorderLayout.NORTH);
		 add(laminaS,BorderLayout.SOUTH);
		 
		 
		
	 }
 }
	 
	 class LaminaCentral extends JPanel{
		 
		 public LaminaCentral(){
			 
			 setLayout(new GridLayout(3,1));
			 JLabel nicklabel=new JLabel("NickName: ");
			 JTextField nick=new JTextField(100);
			 JLabel contrasealabel=new JLabel("Contrasea: ");
			 JTextField contrasea=new JTextField(100);
			 JLabel contrasealabelrepeticion=new JLabel("Repita Contrasea: ");
			 JTextField contraseaRepeticion=new JTextField(100);
			 nicklabel.setBounds(0,10, 100, 20);
			 nick.setBounds(110, 10, 100, 20);
			 contrasealabel.setBounds(0, 30, 100, 20);
			 contrasea.setBounds(110, 30,100,20);
			 contrasealabelrepeticion.setBounds(0, 60, 100, 20);
			 contraseaRepeticion.setBounds(0, 60, 100, 20);
			 
			 LaminaAuxiliarFlow nickname=new LaminaAuxiliarFlow(FlowLayout.LEFT);
			 LaminaAuxiliarFlow password=new LaminaAuxiliarFlow(FlowLayout.LEFT);
			 LaminaAuxiliarFlow passwordtry=new LaminaAuxiliarFlow(FlowLayout.LEFT);
			 
			 
			 nickname.add(nicklabel);
			 nickname.add(nick);
			 password.add(contrasealabel);
			 password.add(contrasea);
			passwordtry.add(contrasealabelrepeticion);
			passwordtry.add(contraseaRepeticion);
			 
			 add(nickname);
			 add(password);
			 add(passwordtry);
			
		 }
	 }
	 
	 class LaminaNorte extends JPanel{
		 
		 public LaminaNorte(){
			 
			 JLabel Titulo=new JLabel("REGISTRARSE");
			 Titulo.setFont(new Font("titulo",Font.BOLD,33));
			 
			 add(Titulo);
			 
			 
		 }
	 }
	 
class LaminaSur extends JPanel{
		 
		 public LaminaSur(){
			 
			 JButton  aceptar=new JButton ("Aceptar");
			 JButton  cancelar=new JButton ("Cancelar");
			 
			 setLayout(new FlowLayout(FlowLayout.CENTER));
			 add(aceptar);
			 add(cancelar);
			 
		 }
	 }
	 
class LaminaAuxiliarFlow extends JPanel{
	
	public LaminaAuxiliarFlow(int f){
		setLayout(new FlowLayout(f));
		
	}
}
	 
	

@@ -390,16 +390,24 @@
 o lamina
+Registro
 =new Lam
@@ -470,17 +470,17 @@
 0,0,600,
-6
+3
 00);%0D%0A%09%09
@@ -489,16 +489,24 @@
 d(lamina
+Registro
 );%0D%0A%09%09%0D%0A
@@ -593,16 +593,49 @@
 tro()%7B%0D%0A
+%09%09 System.out.println(%22entra%22);%0D%0A
 %09%09 setLa
@@ -677,16 +677,17 @@
 aCentral
+R
  laminaC
@@ -705,16 +705,17 @@
 aCentral
+R
 ();%0D%0A%09%09 
@@ -725,16 +725,17 @@
 inaNorte
+R
  laminaN
@@ -750,16 +750,17 @@
 inaNorte
+R
 ();%0D%0A%09%09 
@@ -768,16 +768,17 @@
 aminaSur
+R
  laminaS
@@ -791,16 +791,17 @@
 aminaSur
+R
 ();%0D%0A%09%09 
@@ -957,16 +957,17 @@
 aCentral
+R
  extends
@@ -1004,16 +1004,17 @@
 aCentral
+R
 ()%7B%0D%0A%09%09%09
@@ -1130,33 +1130,32 @@
 ew JTextField(10
-0
 );%0D%0A%09%09%09 JLabel c
@@ -1230,33 +1230,32 @@
 ew JTextField(10
-0
 );%0D%0A%09%09%09 JLabel c
@@ -1365,17 +1365,16 @@
 Field(10
-0
 );%0D%0A%09%09%09 
@@ -1434,26 +1434,25 @@
 ds(110, 10, 
-10
+5
 0, 20);%0D%0A%09%09%09
@@ -1527,18 +1527,17 @@
 110, 30,
-10
+5
 0,20);%0D%0A
@@ -1626,34 +1626,33 @@
 etBounds(0, 60, 
-10
+5
 0, 20);%0D%0A%09%09%09 %0D%0A%09
@@ -2204,16 +2204,17 @@
 inaNorte
+R
  extends
@@ -2249,16 +2249,17 @@
 inaNorte
+R
 ()%7B%0D%0A%09%09%09
@@ -2427,16 +2427,17 @@
 aminaSur
+R
  extends
@@ -2470,16 +2470,17 @@
 aminaSur
+R
 ()%7B%0D%0A%09%09%09

Fix De Interfaz registrarse