import java.awt.Color;
import java.awt.Font;
@SuppressWarnings("serial")
public class DatosPersonales extends javax.swing.JFrame{
//VARIBLES PARA DEFINIR ETIQUETAS
javax.swing.JLabel ENombre,EAPaterno,EAMaterno,EGrado,EGrupo,EPlantel,EMateria,EProf,ETurno;
//VARIABLES PARA DEFINIR CAMPOS DE TEXTO
javax.swing.JTextField Nombre,APaterno,AMaterno,Grado,Grupo,Plantel,Materia,Prof,Turno;
public DatosPersonales(){
setSize(700,500);
setTitle("DATOS PERSONALES");
//CAMBIAR COLOR DE VENTANA
getContentPane().setBackground(Color.orange);
//DEFINICION DE LAS EIQUETAS
ENombre = new javax.swing.JLabel();
EAPaterno = new javax.swing.JLabel();
EAMaterno = new javax.swing.JLabel();
EGrado = new javax.swing.JLabel();
EGrupo = new javax.swing.JLabel();
EPlantel = new javax.swing.JLabel();
EMateria = new javax.swing.JLabel();
EProf = new javax.swing.JLabel();
ETurno = new javax.swing.JLabel();
//DEFINICION DE LOS CAMPOS DE TEXTO
Nombre = new javax.swing.JTextField();
APaterno = new javax.swing.JTextField();
AMaterno = new javax.swing.JTextField();
Grado = new javax.swing.JTextField();
Grupo = new javax.swing.JTextField();
Plantel = new javax.swing.JTextField();
Materia = new javax.swing.JTextField();
Prof = new javax.swing.JTextField();
Turno = new javax.swing.JTextField();
//SE DETERMINA LO QUE LLEVARA LA VENTANA
getContentPane().setLayout(null);
ENombre.setText("Nombre");
getContentPane().add(ENombre);
EAPaterno.setText("Apellido Paterno");
getContentPane().add(EAPaterno);
EAMaterno.setText("Apellido Materno");
getContentPane().add(EAMaterno);
EGrado.setText("Grado");
getContentPane().add(EGrado);
EGrupo.setText("Grupo");
getContentPane().add(EGrupo);
EPlantel.setText("Plantel");
getContentPane().add(EPlantel);
EMateria.setText("Materia");
getContentPane().add(EMateria);
EProf.setText("Profesor");
getContentPane().add(EProf);
ETurno.setText("Turno");
getContentPane().add(ETurno);
Nombre.setText("");
getContentPane().add(Nombre);
APaterno.setText("");
getContentPane().add(APaterno);
AMaterno.setText("");
getContentPane().add(AMaterno);
Grado.setText("3°");
getContentPane().add(Grado);
Grupo.setText("D");
getContentPane().add(Grupo);
Plantel.setText("CETis 50");
getContentPane().add(Plantel);
Materia.setText("D.S.A.U.P.O.O.");
getContentPane().add(Materia);
Prof.setText("Javier Galves Coronado");
getContentPane().add(Prof);
Turno.setText("Matutino");
getContentPane().add(Turno);
//SE LE PROPORCIONA LA POSICION Y EL ANCHO (COLUMNAS) Y LARGO (FILAS)
ENombre.setBounds(40,20,250,20);
EAPaterno.setBounds(40,50,250,20);
EAMaterno.setBounds(40,80,250,20);
EGrado.setBounds(40,110,250,20);
EGrupo.setBounds(40,140,250,20);
EPlantel.setBounds(40,170,250,20);
EMateria.setBounds(40,200,250,20);
EProf.setBounds(40,230,250,20);
ETurno.setBounds(40,260,250,20);
Nombre.setBounds(150,20,250,20);
APaterno.setBounds(150,50,250,20);
AMaterno.setBounds(150,80,250,20);
Grado.setBounds(150,110,250,20);
Grupo.setBounds(150,140,250,20);
Plantel.setBounds(150,170,250,20);
Materia.setBounds(150,200,250,20);
Prof.setBounds(150,230,250,20);
Turno.setBounds(150,260,250,20);
//CAMBIAR TIPO DE FUENTE Y TAMAÑO, NOMBRE DE VARIABLE
ENombre.setFont(new Font("French Script MT",8,20));
EAPaterno.setFont(new Font("French Script MT",8,20));
EAMaterno.setFont(new Font("French Script MT",8,20));
EGrado.setFont(new Font("French Script MT",8,20));
EGrupo.setFont(new Font("French Script MT",8,20));
EPlantel.setFont(new Font("French Script MT",8,20));
EMateria.setFont(new Font("French Script MT",8,20));
EProf.setFont(new Font("French Script MT",8,20));
ETurno.setFont(new Font("French Script MT",8,20));
Nombre.setFont(new Font("Algerian",4,14));
APaterno.setFont(new Font("Algerian",4,14));
AMaterno.setFont(new Font("Algerian",4,14));
Grado.setFont(new Font("Castellar",4,14));
Grupo.setFont(new Font("Castellar",4,14));
Plantel.setFont(new Font("Chiller",4,14));
Materia.setFont(new Font("Matura MT Script Capitals",4,14));
Prof.setFont(new Font("Matura MT Script Capitals",4,14));
Turno.setFont(new Font("Harlow Solid Italic",4,14));
//CAMBIAR COLOR DEL TEXTO
Nombre.setForeground(Color.red);
APaterno.setForeground(Color.red);
AMaterno.setForeground(Color.red);
Grado.setForeground(Color.green);
Grupo.setForeground(Color.green);
Plantel.setForeground(Color.blue);
Materia.setForeground(Color.magenta);
Prof.setForeground(Color.magenta);
Turno.setForeground(Color.cyan);
}
public static void main(String[] args) {
new DatosPersonales().setVisible(true);
}
}