SlideShare a Scribd company logo
1 of 22
Download to read offline
package javacuestionario;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class Javacuestionario extends JFrame{
Container cn;
FlowLayout gy;
JPanel
p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,
p24,p25,p26,p27,p28,p29,p30,p31,p32,p33,p34,p35,p36,p37,p38,p39,p40;
public Javacuestionario(String nameFormulario)
{
super(nameFormulario);
setSize(new Dimension(400,800));
cn = getContentPane();
gy = new FlowLayout(FlowLayout.LEFT);
cn.setLayout(gy);
JFrame jf = new JFrame("JAVACUESTIONARIO");
jf.setLayout(new FlowLayout());
Dimension d = new Dimension();
p1 = new JPanel(gy);
p1.setBackground(Color.BLUE);
JLabel lb1 = new JLabel("NOMBRE");
lb1.setForeground(Color.BLACK);
JTextField tx1 = new JTextField("",10);
tx1.setForeground(Color.BLACK);
p1.add(lb1);
p1.add(tx1);
p2 = new JPanel(gy);
p2.setBackground(Color.BLUE);
JLabel lb2 = new JLabel("APELLIDOS");
lb2.setForeground(Color.black);
JTextField tx2 = new JTextField("",10);
tx2.setForeground(Color.BLACK);
p2.add(lb2);
p2.add(tx2);
p3 = new JPanel(gy);
p3.setBackground(Color.blue);
JLabel lb3 = new JLabel("DOCUMENTO");
lb3.setForeground(Color.black);
JTextField tx3 = new JTextField("",10);
tx3.setForeground(Color.BLACK);
p3.add(lb3);
p3.add(tx3);
p4 = new JPanel(gy);
p4.setBackground(Color.blue);
JLabel lb4 = new JLabel("TELEFONO");
lb4.setForeground(Color.black);
JTextField tx4 = new JTextField("",10);
tx4.setForeground(Color.BLACK);
p4.add(lb4);
p4.add(tx4);
p5 = new JPanel(gy);
p5.setBackground(Color.blue);
JLabel lb5 = new JLabel("DIRECCION");
lb5.setForeground(Color.black);
JTextField tx5 = new JTextField("",10);
tx5.setForeground(Color.BLACK);
p5.add(lb5);
p5.add(tx5);
p6 = new JPanel(gy);
p6.setBackground(Color.blue);
JLabel lb6 = new JLabel("FECHA DE NACIMIENTO");
lb1.setForeground(Color.BLACK);
JTextField tx6 = new JTextField("",10);
tx6.setForeground(Color.BLACK);
p6.add(lb6);
p6.add(tx6);
p7 = new JPanel(gy);
p7.setBackground(Color.BLUE);
JLabel lb7 = new JLabel("GENERO");
lb7.setForeground(Color.black);
JTextField tx7 = new JTextField("",10);
tx7.setForeground(Color.BLACK);
p7.add(lb7);
p7.add(tx7);
p8 = new JPanel(gy);
p8.setBackground(Color.blue);
JLabel lb8 = new JLabel("ESTRATO");
lb8.setForeground(Color.black);
JTextField tx8 = new JTextField("",10);
tx8.setForeground(Color.BLACK);
p8.add(lb8);
p8.add(tx8);
p9 = new JPanel(gy);
p9.setBackground(Color.blue);
JLabel lb9 = new JLabel("LUGAR DE NACIMIENTO");
lb9.setForeground(Color.black);
JTextField tx9 = new JTextField("",10);
tx9.setForeground(Color.BLACK);
p9.add(lb9);
p9.add(tx9);
p10 = new JPanel(gy);
p10.setBackground(Color.blue);
JLabel lb10 = new JLabel("RH");
lb10.setForeground(Color.black);
JTextField tx10 = new JTextField("",10);
tx10.setForeground(Color.BLACK);
p10.add(lb10);
p10.add(tx10);
p11 = new JPanel(gy);
p11.setBackground(Color.blue);
JLabel lb11 = new JLabel("ESTADO CIVIL");
lb11.setForeground(Color.black);
JTextField tx11 = new JTextField("",10);
tx11.setForeground(Color.BLACK);
p11.add(lb11);
p11.add(tx11);
p12 = new JPanel(gy);
p12.setBackground(Color.blue);
JLabel lb12 = new JLabel("CORREO ELECTRONICO");
lb12.setForeground(Color.BLACK);
JTextField tx12 = new JTextField("",10);
tx12.setForeground(Color.BLACK);
p12.add(lb12);
p12.add(tx12);
p13 = new JPanel(gy);
p13.setBackground(Color.LIGHT_GRAY);
JLabel lb13 = new JLabel("NOMBRE DEL PADRE");
lb13.setForeground(Color.black);
JTextField tx13 = new JTextField("",10);
tx13.setForeground(Color.BLACK);
p13.add(lb13);
p13.add(tx13);
p14 = new JPanel(gy);
p14.setBackground(Color.LIGHT_GRAY);
JLabel lb14 = new JLabel("DOCUMENTO DEL PADRE ");
lb14.setForeground(Color.black);
JTextField tx14 = new JTextField("",10);
tx14.setForeground(Color.BLACK);
p14.add(lb14);
p14.add(tx14);
p15 = new JPanel(gy);
p15.setBackground(Color.LIGHT_GRAY);
JLabel lb15 = new JLabel("NOMBRE DE LA MADRE ");
lb15.setForeground(Color.black);
JTextField tx15 = new JTextField("",10);
tx15.setForeground(Color.BLACK);
p15.add(lb15);
p15.add(tx15);
p16 = new JPanel(gy);
p16.setBackground(Color.LIGHT_GRAY);
JLabel lb16 = new JLabel("DOCUMENTO DE LA MADRE");
lb16.setForeground(Color.black);
JTextField tx16 = new JTextField("",10);
tx16.setForeground(Color.BLACK);
p16.add(lb16);
p16.add(tx16);
p17 = new JPanel(gy);
p17.setBackground(Color.LIGHT_GRAY);
JLabel lb17 = new JLabel("NUMERO DE HERMANOS");
lb17.setForeground(Color.black);
JTextField tx17 = new JTextField("",10);
tx17.setForeground(Color.BLACK);
p17.add(lb17);
p17.add(tx17);
p18 = new JPanel(gy);
p18.setBackground(Color.LIGHT_GRAY);
JLabel lb18 = new JLabel("NUCLEO FAMILIAR");
lb18.setForeground(Color.black);
JTextField tx18 = new JTextField("",10);
tx18.setForeground(Color.BLACK);
p18.add(lb18);
p18.add(tx18);
p19 = new JPanel(gy);
p19.setBackground(Color.cyan);
JLabel lb19 = new JLabel("NIVEL EDUCATIVO PRIMARIA");
lb19.setForeground(Color.black);
JTextField tx19 = new JTextField("",10);
tx19 .setForeground(Color.BLACK);
p19.add(lb19);
p19.add(tx19);
p20 = new JPanel(gy);
p20.setBackground(Color.cyan);
JLabel lb20 = new JLabel("NOMBRE INSTITUCION");
lb20.setForeground(Color.black);
JTextField tx20 = new JTextField("",10);
tx20.setForeground(Color.BLACK);
p20.add(lb20);
p20.add(tx20);
p21 = new JPanel(gy);
p21.setBackground(Color.cyan);
JLabel lb21 = new JLabel("AÑO FINALIZACION");
lb21.setForeground(Color.black);
JTextField tx21 = new JTextField("",10);
tx21.setForeground(Color.BLACK);
p21.add(lb21);
p21.add(tx21);
p22 = new JPanel(gy);
p22.setBackground(Color.cyan);
JLabel lb22 = new JLabel("NIVEL EDUCATIVO BACHILLERATO");
lb22.setForeground(Color.black);
JTextField tx22 = new JTextField("",10);
tx22.setForeground(Color.BLACK);
p22.add(lb22);
p22.add(tx22);
p23 = new JPanel(gy);
p23.setBackground(Color.cyan);
JLabel lb23 = new JLabel("NOMBRE INSTITUCION");
lb23.setForeground(Color.black);
JTextField tx23 = new JTextField("",10);
tx23.setForeground(Color.BLACK);
p23.add(lb23);
p23.add(tx23);
p24 = new JPanel(gy);
p24.setBackground(Color.cyan);
JLabel lb24 = new JLabel("AÑO FINALIZACION");
lb24.setForeground(Color.black);
JTextField tx24 = new JTextField("",10);
tx24.setForeground(Color.BLACK);
p24.add(lb24);
p24.add(tx24);
p25 = new JPanel(gy);
p25.setBackground(Color.cyan);
JLabel lb25 = new JLabel("NIVEL EDUCATIVO PROFESIONAL");
lb25.setForeground(Color.black);
JTextField tx25 = new JTextField("",10);
tx25.setForeground(Color.BLACK);
p25.add(lb25);
p25.add(tx25);
p26 = new JPanel(gy);
p26.setBackground(Color.cyan);
JLabel lb26 = new JLabel("CARRERA");
lb26.setForeground(Color.black);
JTextField tx26 = new JTextField("",10);
tx26.setForeground(Color.BLACK);
p26.add(lb26);
p26.add(tx26);
p27 = new JPanel(gy);
p27.setBackground(Color.cyan);
JLabel lb27 = new JLabel("NOMBRE DE INSTITUCION");
lb27.setForeground(Color.BLACK);
JTextField tx27 = new JTextField("",10);
tx27.setForeground(Color.BLACK);
p27.add(lb27);
p27.add(tx27);
p28 = new JPanel(gy);
p28.setBackground(Color.cyan);
JLabel lb28 = new JLabel("AÑO DE FINALIZACION");
lb28.setForeground(Color.black);
JTextField tx28 = new JTextField("",10);
tx28.setForeground(Color.BLACK);
p28.add(lb28);
p28.add(tx28);
p29 = new JPanel(gy);
p29.setBackground(Color.PINK);
JLabel lb29 = new JLabel("ARS");
lb29.setForeground(Color.black);
JTextField tx29 = new JTextField("",10);
tx29.setForeground(Color.BLACK);
p29.add(lb29);
p29.add(tx29);
p30 = new JPanel(gy);
p30.setBackground(Color.PINK);
JLabel lb30 = new JLabel("EPS");
lb30.setForeground(Color.black);
JTextField tx30 = new JTextField("",10);
tx30.setForeground(Color.BLACK);
p30.add(lb30);
p30.add(tx30);
p31 = new JPanel(gy);
p31.setBackground(Color.PINK);
JLabel lb31 = new JLabel("SISBEN");
lb31.setForeground(Color.black);
JTextField tx31 = new JTextField("",10);
tx31.setForeground(Color.BLACK);
p31.add(lb31);
p31.add(tx31);
p32 = new JPanel(gy);
p32.setBackground(Color.PINK);
JLabel lb32 = new JLabel("ALERGIAS");
lb32.setForeground(Color.black);
JTextField tx32 = new JTextField("",10);
tx32.setForeground(Color.BLACK);
p32.add(lb32);
p32.add(tx32);
p33 = new JPanel(gy);
p33.setBackground(Color.PINK);
JLabel lb33 = new JLabel("CONSUME ALGUN MEDICAMENTO");
lb33.setForeground(Color.black);
JTextField tx33 = new JTextField("",10);
tx33.setForeground(Color.BLACK);
p33.add(lb33);
p33.add(tx33);
p34 = new JPanel(gy);
p34.setBackground(Color.PINK);
JLabel lb34 = new JLabel("NOMBRE DE MEDICAMENTOS");
lb34.setForeground(Color.black);
JTextField tx34 = new JTextField("",10);
tx34.setForeground(Color.BLACK);
p34.add(lb34);
p34.add(tx34);
p35 = new JPanel(gy);
p35.setBackground(Color.MAGENTA);
JLabel lb35 = new JLabel("¿TRABAJA ACTUALMENTE?");
lb35.setForeground(Color.black);
JTextField tx35 = new JTextField("",10);
tx35.setForeground(Color.BLACK);
p35.add(lb35);
p35.add(tx35);
p36 = new JPanel(gy);
p36.setBackground(Color.MAGENTA);
JLabel lb36 = new JLabel("NOMBRE DE EMPRESA");
lb36.setForeground(Color.black);
JTextField tx36 = new JTextField("",10);
tx36.setForeground(Color.BLACK);
p36.add(lb36);
p36.add(tx36);
p37 = new JPanel(gy);
p37.setBackground(Color.MAGENTA);
JLabel lb37 = new JLabel("DIRECCION DE EMPRESA");
lb37.setForeground(Color.black);
JTextField tx37 = new JTextField("",10);
tx37.setForeground(Color.BLACK);
p37.add(lb37);
p37.add(tx37);
p38 = new JPanel(gy);
p38.setBackground(Color.MAGENTA);
JLabel lb38 = new JLabel("CARGO OCUPADO");
lb38.setForeground(Color.black);
JTextField tx38 = new JTextField("",10);
tx38.setForeground(Color.BLACK);
p38.add(lb38);
p38.add(tx38);
p39 = new JPanel(gy);
p39.setBackground(Color.MAGENTA);
JLabel lb39 = new JLabel("AÑOS DE ANTIGUEDAD");
lb39.setForeground(Color.black);
JTextField tx39 = new JTextField("",10);
tx39.setForeground(Color.BLACK);
p39.add(lb39);
p39.add(tx39);
p40 = new JPanel(gy);
p40.setBackground(Color.MAGENTA);
JLabel lb40 = new JLabel("EXPERIENCIA LABORAL");
lb40.setForeground(Color.black);
JTextField tx40 = new JTextField("",10);
tx40.setForeground(Color.BLACK);
p40.add(lb40);
p40.add(tx40);
cn.add(p1);
cn.add(p2);
cn.add(p3);
cn.add(p4);
cn.add(p5);
cn.add(p6);
cn.add(p7);
cn.add(p8);
cn.add(p9);
cn.add(p10);
cn.add(p11);
cn.add(p12);
cn.add(p13);
cn.add(p14);
cn.add(p15);
cn.add(p16);
cn.add(p17);
cn.add(p18);
cn.add(p19);
cn.add(p20);
cn.add(p21);
cn.add(p22);
cn.add(p23);
cn.add(p24);
cn.add(p25);
cn.add(p26);
cn.add(p27);
cn.add(p28);
cn.add(p29);
cn.add(p30);
cn.add(p31);
cn.add(p32);
cn.add(p33);
cn.add(p34);
cn.add(p35);
cn.add(p36);
cn.add(p37);
cn.add(p38);
cn.add(p39);
cn.add(p40);
// LECTURA DE DATOS INTRODUCIDOS
String texto=tx1.getText(); // TEXTO INICIAL
tx1.addActionListener((ActionListener) new Lector1());
tx2.addActionListener((ActionListener) new Lector2());
tx3.addActionListener((ActionListener) new Lector3());
tx4.addActionListener((ActionListener) new Lector4());
tx5.addActionListener((ActionListener) new Lector5());
tx6.addActionListener((ActionListener) new Lector6());
tx7.addActionListener((ActionListener) new Lector7());
tx8.addActionListener((ActionListener) new Lector8());
tx9.addActionListener((ActionListener) new Lector9());
tx10.addActionListener((ActionListener) new Lector10());
tx11.addActionListener((ActionListener) new Lector11());
tx12.addActionListener((ActionListener) new Lector12());
tx13.addActionListener((ActionListener) new Lector13());
tx14.addActionListener((ActionListener) new Lector14());
tx15.addActionListener((ActionListener) new Lector15());
tx16.addActionListener((ActionListener) new Lector16());
tx17.addActionListener((ActionListener) new Lector17());
tx18.addActionListener((ActionListener) new Lector18());
tx19.addActionListener((ActionListener) new Lector19());
tx20.addActionListener((ActionListener) new Lector20());
tx21.addActionListener((ActionListener) new Lector21());
tx22.addActionListener((ActionListener) new Lector22());
tx23.addActionListener((ActionListener) new Lector23());
tx24.addActionListener((ActionListener) new Lector24());
tx25.addActionListener((ActionListener) new Lector25());
tx26.addActionListener((ActionListener) new Lector26());
tx27.addActionListener((ActionListener) new Lector27());
tx28.addActionListener((ActionListener) new Lector28());
tx29.addActionListener((ActionListener) new Lector29());
tx30.addActionListener((ActionListener) new Lector30());
tx31.addActionListener((ActionListener) new Lector31());
tx32.addActionListener((ActionListener) new Lector32());
tx33.addActionListener((ActionListener) new Lector33());
tx34.addActionListener((ActionListener) new Lector34());
tx35.addActionListener((ActionListener) new Lector35());
tx36.addActionListener((ActionListener) new Lector36());
tx37.addActionListener((ActionListener) new Lector37());
tx38.addActionListener((ActionListener) new Lector38());
tx39.addActionListener((ActionListener) new Lector39());
tx40.addActionListener((ActionListener) new Lector40());
// FINAL: CIERRE DE VENTANA
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
System.out.println("");
}
public static void main(String[] args)
{
Javacuestionario frame = new Javacuestionario("CUESTIONARIO");
frame.setVisible(true);
}
// LEE CUANDO SE PRESIONE RETURN EN EL CAMPO CORRESPONDIENTE
class Lector1 implements ActionListener
{
private int a;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE: "+a);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector2 implements ActionListener
{
private int b;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("APELLIDO: "+b);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector3 implements ActionListener
{
private int c;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("DOCUMENTO: "+c);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector4 implements ActionListener
{
private int d;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("TELEFONO: "+d);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector5 implements ActionListener
{
private int E;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("DIRECCION: "+E);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector6 implements ActionListener
{
private int f;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("FECHA DE NACIMIENTO: "+f);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector7 implements ActionListener
{
private int g;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("SEXO: "+g);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector8 implements ActionListener
{
private int h;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("ESTRATO: "+h);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector9 implements ActionListener
{
private int i;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("LUGAR DE NACIMIENTO: "+i);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector10 implements ActionListener
{
private int j;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("RH: "+j);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector11 implements ActionListener
{
private int k;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("ESTADO CIVIL: "+k);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector12 implements ActionListener
{
private int l;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("CORREO ELECTRONICO: "+l);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector13 implements ActionListener
{
private int m;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE DEL PADRE: "+m);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector14 implements ActionListener
{
private int n;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("DOCUMENTO DEL PADRE: "+n);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector15 implements ActionListener
{
private int ñ;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE DE LA MADRE: "+ñ);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector16 implements ActionListener
{
private int o;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("DOCUMENTO DE LA MADRE: "+o);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector17 implements ActionListener
{
private int p;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NUMERO DE HERMANOS: "+p);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector18 implements ActionListener
{
private int q;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NUCLEO FAMILIAR: "+q);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector19 implements ActionListener
{
private int r;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NIVEL EDUCATIVO PRIMARIA: "+r);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector20 implements ActionListener
{
private int s;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE INSTITUCION: "+s);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector21 implements ActionListener
{
private int t;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("AÑO FINALIZACION: "+t);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector22 implements ActionListener
{
private int u;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NIVEL EDUCATIVO BACHILLERATO: "+u);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector23 implements ActionListener
{
private int v;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE INSTITUCION: "+v);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector24 implements ActionListener
{
private int w;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("AÑO FINALIZACION: "+w);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector25 implements ActionListener
{
private int x;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NIVEL EDUCATIVO PROFESIONAL: "+x);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector26 implements ActionListener
{
private int y;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("CARRERA: "+y);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector27 implements ActionListener
{
private int z;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE DE INSTITUCION: "+z);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector28 implements ActionListener
{
private int ab;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("AÑO FINALIZACION: "+ab);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector29 implements ActionListener
{
private int ac;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("ARS: "+ac);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector30 implements ActionListener
{
private int ad;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("EPS: "+ad);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector31 implements ActionListener
{
private int ae;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("SISBEN: "+ae);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector32 implements ActionListener
{
private int af;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("ALERGIAS: "+af);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector33 implements ActionListener
{
private int ag;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("CONSUME ALGUN MEDICAMENTO: "+ag);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector34 implements ActionListener
{
private int ah;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE DE MEDICAMENTOS: "+ah);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector35 implements ActionListener
{
private int ai;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("¿TRABAJA ACTUALMENTE?: "+ai);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector36 implements ActionListener
{
private int aj;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("NOMBRE DE EMPRESA: "+aj);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector37 implements ActionListener
{
private int ak;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("DIRECCION DE EMPRESA: "+ak);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector38 implements ActionListener
{
private int al;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("CARGO OCUPADO: "+al);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector39 implements ActionListener
{
private int am;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("AÑOS DE ANTIGUEDAD: "+am);
System.out.println(((JTextField)e.getSource()).getText());
}
}
class Lector40 implements ActionListener
{
private int an;
@Override
public void actionPerformed(ActionEvent e)
{
System.out.print("EXPERIENCIA LABORAL: "+an);
System.out.println(((JTextField)e.getSource()).getText());
}
}
}
}
}

More Related Content

More from implantarb101

sistemas de informacion
sistemas de informacionsistemas de informacion
sistemas de informacionimplantarb101
 
Sistema informacion y modelo cliente servidor
Sistema informacion y modelo  cliente servidorSistema informacion y modelo  cliente servidor
Sistema informacion y modelo cliente servidorimplantarb101
 
Trabajo de sistemas de s c
Trabajo de sistemas de s cTrabajo de sistemas de s c
Trabajo de sistemas de s cimplantarb101
 
Sistemas de informacion
Sistemas de informacionSistemas de informacion
Sistemas de informacionimplantarb101
 

More from implantarb101 (7)

sistemas de informacion
sistemas de informacionsistemas de informacion
sistemas de informacion
 
Sistema informacion y modelo cliente servidor
Sistema informacion y modelo  cliente servidorSistema informacion y modelo  cliente servidor
Sistema informacion y modelo cliente servidor
 
Formulario5
Formulario5Formulario5
Formulario5
 
Trabajo de sistemas de s c
Trabajo de sistemas de s cTrabajo de sistemas de s c
Trabajo de sistemas de s c
 
Cliente servidor
Cliente servidorCliente servidor
Cliente servidor
 
Formulario en java
Formulario en javaFormulario en java
Formulario en java
 
Sistemas de informacion
Sistemas de informacionSistemas de informacion
Sistemas de informacion
 

Formulario6

  • 1. package javacuestionario; import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class Javacuestionario extends JFrame{ Container cn; FlowLayout gy; JPanel p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23, p24,p25,p26,p27,p28,p29,p30,p31,p32,p33,p34,p35,p36,p37,p38,p39,p40; public Javacuestionario(String nameFormulario) { super(nameFormulario); setSize(new Dimension(400,800)); cn = getContentPane(); gy = new FlowLayout(FlowLayout.LEFT); cn.setLayout(gy); JFrame jf = new JFrame("JAVACUESTIONARIO"); jf.setLayout(new FlowLayout()); Dimension d = new Dimension(); p1 = new JPanel(gy); p1.setBackground(Color.BLUE); JLabel lb1 = new JLabel("NOMBRE"); lb1.setForeground(Color.BLACK); JTextField tx1 = new JTextField("",10); tx1.setForeground(Color.BLACK); p1.add(lb1); p1.add(tx1); p2 = new JPanel(gy); p2.setBackground(Color.BLUE);
  • 2. JLabel lb2 = new JLabel("APELLIDOS"); lb2.setForeground(Color.black); JTextField tx2 = new JTextField("",10); tx2.setForeground(Color.BLACK); p2.add(lb2); p2.add(tx2); p3 = new JPanel(gy); p3.setBackground(Color.blue); JLabel lb3 = new JLabel("DOCUMENTO"); lb3.setForeground(Color.black); JTextField tx3 = new JTextField("",10); tx3.setForeground(Color.BLACK); p3.add(lb3); p3.add(tx3); p4 = new JPanel(gy); p4.setBackground(Color.blue); JLabel lb4 = new JLabel("TELEFONO"); lb4.setForeground(Color.black); JTextField tx4 = new JTextField("",10); tx4.setForeground(Color.BLACK); p4.add(lb4); p4.add(tx4); p5 = new JPanel(gy); p5.setBackground(Color.blue); JLabel lb5 = new JLabel("DIRECCION"); lb5.setForeground(Color.black); JTextField tx5 = new JTextField("",10); tx5.setForeground(Color.BLACK); p5.add(lb5); p5.add(tx5); p6 = new JPanel(gy); p6.setBackground(Color.blue); JLabel lb6 = new JLabel("FECHA DE NACIMIENTO"); lb1.setForeground(Color.BLACK); JTextField tx6 = new JTextField("",10); tx6.setForeground(Color.BLACK); p6.add(lb6); p6.add(tx6); p7 = new JPanel(gy);
  • 3. p7.setBackground(Color.BLUE); JLabel lb7 = new JLabel("GENERO"); lb7.setForeground(Color.black); JTextField tx7 = new JTextField("",10); tx7.setForeground(Color.BLACK); p7.add(lb7); p7.add(tx7); p8 = new JPanel(gy); p8.setBackground(Color.blue); JLabel lb8 = new JLabel("ESTRATO"); lb8.setForeground(Color.black); JTextField tx8 = new JTextField("",10); tx8.setForeground(Color.BLACK); p8.add(lb8); p8.add(tx8); p9 = new JPanel(gy); p9.setBackground(Color.blue); JLabel lb9 = new JLabel("LUGAR DE NACIMIENTO"); lb9.setForeground(Color.black); JTextField tx9 = new JTextField("",10); tx9.setForeground(Color.BLACK); p9.add(lb9); p9.add(tx9); p10 = new JPanel(gy); p10.setBackground(Color.blue); JLabel lb10 = new JLabel("RH"); lb10.setForeground(Color.black); JTextField tx10 = new JTextField("",10); tx10.setForeground(Color.BLACK); p10.add(lb10); p10.add(tx10); p11 = new JPanel(gy); p11.setBackground(Color.blue); JLabel lb11 = new JLabel("ESTADO CIVIL"); lb11.setForeground(Color.black); JTextField tx11 = new JTextField("",10); tx11.setForeground(Color.BLACK); p11.add(lb11); p11.add(tx11);
  • 4. p12 = new JPanel(gy); p12.setBackground(Color.blue); JLabel lb12 = new JLabel("CORREO ELECTRONICO"); lb12.setForeground(Color.BLACK); JTextField tx12 = new JTextField("",10); tx12.setForeground(Color.BLACK); p12.add(lb12); p12.add(tx12); p13 = new JPanel(gy); p13.setBackground(Color.LIGHT_GRAY); JLabel lb13 = new JLabel("NOMBRE DEL PADRE"); lb13.setForeground(Color.black); JTextField tx13 = new JTextField("",10); tx13.setForeground(Color.BLACK); p13.add(lb13); p13.add(tx13); p14 = new JPanel(gy); p14.setBackground(Color.LIGHT_GRAY); JLabel lb14 = new JLabel("DOCUMENTO DEL PADRE "); lb14.setForeground(Color.black); JTextField tx14 = new JTextField("",10); tx14.setForeground(Color.BLACK); p14.add(lb14); p14.add(tx14); p15 = new JPanel(gy); p15.setBackground(Color.LIGHT_GRAY); JLabel lb15 = new JLabel("NOMBRE DE LA MADRE "); lb15.setForeground(Color.black); JTextField tx15 = new JTextField("",10); tx15.setForeground(Color.BLACK); p15.add(lb15); p15.add(tx15); p16 = new JPanel(gy); p16.setBackground(Color.LIGHT_GRAY); JLabel lb16 = new JLabel("DOCUMENTO DE LA MADRE"); lb16.setForeground(Color.black); JTextField tx16 = new JTextField("",10); tx16.setForeground(Color.BLACK);
  • 5. p16.add(lb16); p16.add(tx16); p17 = new JPanel(gy); p17.setBackground(Color.LIGHT_GRAY); JLabel lb17 = new JLabel("NUMERO DE HERMANOS"); lb17.setForeground(Color.black); JTextField tx17 = new JTextField("",10); tx17.setForeground(Color.BLACK); p17.add(lb17); p17.add(tx17); p18 = new JPanel(gy); p18.setBackground(Color.LIGHT_GRAY); JLabel lb18 = new JLabel("NUCLEO FAMILIAR"); lb18.setForeground(Color.black); JTextField tx18 = new JTextField("",10); tx18.setForeground(Color.BLACK); p18.add(lb18); p18.add(tx18); p19 = new JPanel(gy); p19.setBackground(Color.cyan); JLabel lb19 = new JLabel("NIVEL EDUCATIVO PRIMARIA"); lb19.setForeground(Color.black); JTextField tx19 = new JTextField("",10); tx19 .setForeground(Color.BLACK); p19.add(lb19); p19.add(tx19); p20 = new JPanel(gy); p20.setBackground(Color.cyan); JLabel lb20 = new JLabel("NOMBRE INSTITUCION"); lb20.setForeground(Color.black); JTextField tx20 = new JTextField("",10); tx20.setForeground(Color.BLACK); p20.add(lb20); p20.add(tx20); p21 = new JPanel(gy); p21.setBackground(Color.cyan); JLabel lb21 = new JLabel("AÑO FINALIZACION"); lb21.setForeground(Color.black); JTextField tx21 = new JTextField("",10);
  • 6. tx21.setForeground(Color.BLACK); p21.add(lb21); p21.add(tx21); p22 = new JPanel(gy); p22.setBackground(Color.cyan); JLabel lb22 = new JLabel("NIVEL EDUCATIVO BACHILLERATO"); lb22.setForeground(Color.black); JTextField tx22 = new JTextField("",10); tx22.setForeground(Color.BLACK); p22.add(lb22); p22.add(tx22); p23 = new JPanel(gy); p23.setBackground(Color.cyan); JLabel lb23 = new JLabel("NOMBRE INSTITUCION"); lb23.setForeground(Color.black); JTextField tx23 = new JTextField("",10); tx23.setForeground(Color.BLACK); p23.add(lb23); p23.add(tx23); p24 = new JPanel(gy); p24.setBackground(Color.cyan); JLabel lb24 = new JLabel("AÑO FINALIZACION"); lb24.setForeground(Color.black); JTextField tx24 = new JTextField("",10); tx24.setForeground(Color.BLACK); p24.add(lb24); p24.add(tx24); p25 = new JPanel(gy); p25.setBackground(Color.cyan); JLabel lb25 = new JLabel("NIVEL EDUCATIVO PROFESIONAL"); lb25.setForeground(Color.black); JTextField tx25 = new JTextField("",10); tx25.setForeground(Color.BLACK); p25.add(lb25); p25.add(tx25); p26 = new JPanel(gy); p26.setBackground(Color.cyan); JLabel lb26 = new JLabel("CARRERA"); lb26.setForeground(Color.black);
  • 7. JTextField tx26 = new JTextField("",10); tx26.setForeground(Color.BLACK); p26.add(lb26); p26.add(tx26); p27 = new JPanel(gy); p27.setBackground(Color.cyan); JLabel lb27 = new JLabel("NOMBRE DE INSTITUCION"); lb27.setForeground(Color.BLACK); JTextField tx27 = new JTextField("",10); tx27.setForeground(Color.BLACK); p27.add(lb27); p27.add(tx27); p28 = new JPanel(gy); p28.setBackground(Color.cyan); JLabel lb28 = new JLabel("AÑO DE FINALIZACION"); lb28.setForeground(Color.black); JTextField tx28 = new JTextField("",10); tx28.setForeground(Color.BLACK); p28.add(lb28); p28.add(tx28); p29 = new JPanel(gy); p29.setBackground(Color.PINK); JLabel lb29 = new JLabel("ARS"); lb29.setForeground(Color.black); JTextField tx29 = new JTextField("",10); tx29.setForeground(Color.BLACK); p29.add(lb29); p29.add(tx29); p30 = new JPanel(gy); p30.setBackground(Color.PINK); JLabel lb30 = new JLabel("EPS"); lb30.setForeground(Color.black); JTextField tx30 = new JTextField("",10); tx30.setForeground(Color.BLACK); p30.add(lb30); p30.add(tx30); p31 = new JPanel(gy); p31.setBackground(Color.PINK);
  • 8. JLabel lb31 = new JLabel("SISBEN"); lb31.setForeground(Color.black); JTextField tx31 = new JTextField("",10); tx31.setForeground(Color.BLACK); p31.add(lb31); p31.add(tx31); p32 = new JPanel(gy); p32.setBackground(Color.PINK); JLabel lb32 = new JLabel("ALERGIAS"); lb32.setForeground(Color.black); JTextField tx32 = new JTextField("",10); tx32.setForeground(Color.BLACK); p32.add(lb32); p32.add(tx32); p33 = new JPanel(gy); p33.setBackground(Color.PINK); JLabel lb33 = new JLabel("CONSUME ALGUN MEDICAMENTO"); lb33.setForeground(Color.black); JTextField tx33 = new JTextField("",10); tx33.setForeground(Color.BLACK); p33.add(lb33); p33.add(tx33); p34 = new JPanel(gy); p34.setBackground(Color.PINK); JLabel lb34 = new JLabel("NOMBRE DE MEDICAMENTOS"); lb34.setForeground(Color.black); JTextField tx34 = new JTextField("",10); tx34.setForeground(Color.BLACK); p34.add(lb34); p34.add(tx34); p35 = new JPanel(gy); p35.setBackground(Color.MAGENTA); JLabel lb35 = new JLabel("¿TRABAJA ACTUALMENTE?"); lb35.setForeground(Color.black); JTextField tx35 = new JTextField("",10); tx35.setForeground(Color.BLACK); p35.add(lb35); p35.add(tx35); p36 = new JPanel(gy);
  • 9. p36.setBackground(Color.MAGENTA); JLabel lb36 = new JLabel("NOMBRE DE EMPRESA"); lb36.setForeground(Color.black); JTextField tx36 = new JTextField("",10); tx36.setForeground(Color.BLACK); p36.add(lb36); p36.add(tx36); p37 = new JPanel(gy); p37.setBackground(Color.MAGENTA); JLabel lb37 = new JLabel("DIRECCION DE EMPRESA"); lb37.setForeground(Color.black); JTextField tx37 = new JTextField("",10); tx37.setForeground(Color.BLACK); p37.add(lb37); p37.add(tx37); p38 = new JPanel(gy); p38.setBackground(Color.MAGENTA); JLabel lb38 = new JLabel("CARGO OCUPADO"); lb38.setForeground(Color.black); JTextField tx38 = new JTextField("",10); tx38.setForeground(Color.BLACK); p38.add(lb38); p38.add(tx38); p39 = new JPanel(gy); p39.setBackground(Color.MAGENTA); JLabel lb39 = new JLabel("AÑOS DE ANTIGUEDAD"); lb39.setForeground(Color.black); JTextField tx39 = new JTextField("",10); tx39.setForeground(Color.BLACK); p39.add(lb39); p39.add(tx39); p40 = new JPanel(gy); p40.setBackground(Color.MAGENTA); JLabel lb40 = new JLabel("EXPERIENCIA LABORAL"); lb40.setForeground(Color.black); JTextField tx40 = new JTextField("",10); tx40.setForeground(Color.BLACK); p40.add(lb40);
  • 11. // LECTURA DE DATOS INTRODUCIDOS String texto=tx1.getText(); // TEXTO INICIAL tx1.addActionListener((ActionListener) new Lector1()); tx2.addActionListener((ActionListener) new Lector2()); tx3.addActionListener((ActionListener) new Lector3()); tx4.addActionListener((ActionListener) new Lector4()); tx5.addActionListener((ActionListener) new Lector5()); tx6.addActionListener((ActionListener) new Lector6()); tx7.addActionListener((ActionListener) new Lector7()); tx8.addActionListener((ActionListener) new Lector8()); tx9.addActionListener((ActionListener) new Lector9()); tx10.addActionListener((ActionListener) new Lector10()); tx11.addActionListener((ActionListener) new Lector11()); tx12.addActionListener((ActionListener) new Lector12()); tx13.addActionListener((ActionListener) new Lector13()); tx14.addActionListener((ActionListener) new Lector14()); tx15.addActionListener((ActionListener) new Lector15()); tx16.addActionListener((ActionListener) new Lector16()); tx17.addActionListener((ActionListener) new Lector17()); tx18.addActionListener((ActionListener) new Lector18()); tx19.addActionListener((ActionListener) new Lector19()); tx20.addActionListener((ActionListener) new Lector20()); tx21.addActionListener((ActionListener) new Lector21()); tx22.addActionListener((ActionListener) new Lector22()); tx23.addActionListener((ActionListener) new Lector23()); tx24.addActionListener((ActionListener) new Lector24()); tx25.addActionListener((ActionListener) new Lector25()); tx26.addActionListener((ActionListener) new Lector26()); tx27.addActionListener((ActionListener) new Lector27()); tx28.addActionListener((ActionListener) new Lector28()); tx29.addActionListener((ActionListener) new Lector29()); tx30.addActionListener((ActionListener) new Lector30()); tx31.addActionListener((ActionListener) new Lector31()); tx32.addActionListener((ActionListener) new Lector32()); tx33.addActionListener((ActionListener) new Lector33()); tx34.addActionListener((ActionListener) new Lector34()); tx35.addActionListener((ActionListener) new Lector35()); tx36.addActionListener((ActionListener) new Lector36()); tx37.addActionListener((ActionListener) new Lector37()); tx38.addActionListener((ActionListener) new Lector38()); tx39.addActionListener((ActionListener) new Lector39()); tx40.addActionListener((ActionListener) new Lector40());
  • 12. // FINAL: CIERRE DE VENTANA setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); System.out.println(""); } public static void main(String[] args) { Javacuestionario frame = new Javacuestionario("CUESTIONARIO"); frame.setVisible(true); } // LEE CUANDO SE PRESIONE RETURN EN EL CAMPO CORRESPONDIENTE class Lector1 implements ActionListener { private int a; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE: "+a); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector2 implements ActionListener { private int b; @Override public void actionPerformed(ActionEvent e) { System.out.print("APELLIDO: "+b); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector3 implements ActionListener { private int c;
  • 13. @Override public void actionPerformed(ActionEvent e) { System.out.print("DOCUMENTO: "+c); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector4 implements ActionListener { private int d; @Override public void actionPerformed(ActionEvent e) { System.out.print("TELEFONO: "+d); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector5 implements ActionListener { private int E; @Override public void actionPerformed(ActionEvent e) { System.out.print("DIRECCION: "+E); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector6 implements ActionListener { private int f; @Override public void actionPerformed(ActionEvent e) { System.out.print("FECHA DE NACIMIENTO: "+f); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector7 implements ActionListener {
  • 14. private int g; @Override public void actionPerformed(ActionEvent e) { System.out.print("SEXO: "+g); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector8 implements ActionListener { private int h; @Override public void actionPerformed(ActionEvent e) { System.out.print("ESTRATO: "+h); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector9 implements ActionListener { private int i; @Override public void actionPerformed(ActionEvent e) { System.out.print("LUGAR DE NACIMIENTO: "+i); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector10 implements ActionListener { private int j; @Override public void actionPerformed(ActionEvent e) { System.out.print("RH: "+j); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector11 implements ActionListener {
  • 15. private int k; @Override public void actionPerformed(ActionEvent e) { System.out.print("ESTADO CIVIL: "+k); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector12 implements ActionListener { private int l; @Override public void actionPerformed(ActionEvent e) { System.out.print("CORREO ELECTRONICO: "+l); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector13 implements ActionListener { private int m; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE DEL PADRE: "+m); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector14 implements ActionListener { private int n; @Override public void actionPerformed(ActionEvent e) { System.out.print("DOCUMENTO DEL PADRE: "+n); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector15 implements ActionListener {
  • 16. private int ñ; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE DE LA MADRE: "+ñ); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector16 implements ActionListener { private int o; @Override public void actionPerformed(ActionEvent e) { System.out.print("DOCUMENTO DE LA MADRE: "+o); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector17 implements ActionListener { private int p; @Override public void actionPerformed(ActionEvent e) { System.out.print("NUMERO DE HERMANOS: "+p); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector18 implements ActionListener { private int q; @Override public void actionPerformed(ActionEvent e) { System.out.print("NUCLEO FAMILIAR: "+q); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector19 implements ActionListener {
  • 17. private int r; @Override public void actionPerformed(ActionEvent e) { System.out.print("NIVEL EDUCATIVO PRIMARIA: "+r); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector20 implements ActionListener { private int s; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE INSTITUCION: "+s); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector21 implements ActionListener { private int t; @Override public void actionPerformed(ActionEvent e) { System.out.print("AÑO FINALIZACION: "+t); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector22 implements ActionListener { private int u; @Override public void actionPerformed(ActionEvent e) { System.out.print("NIVEL EDUCATIVO BACHILLERATO: "+u); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector23 implements ActionListener {
  • 18. private int v; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE INSTITUCION: "+v); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector24 implements ActionListener { private int w; @Override public void actionPerformed(ActionEvent e) { System.out.print("AÑO FINALIZACION: "+w); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector25 implements ActionListener { private int x; @Override public void actionPerformed(ActionEvent e) { System.out.print("NIVEL EDUCATIVO PROFESIONAL: "+x); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector26 implements ActionListener { private int y; @Override public void actionPerformed(ActionEvent e) { System.out.print("CARRERA: "+y); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector27 implements ActionListener {
  • 19. private int z; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE DE INSTITUCION: "+z); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector28 implements ActionListener { private int ab; @Override public void actionPerformed(ActionEvent e) { System.out.print("AÑO FINALIZACION: "+ab); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector29 implements ActionListener { private int ac; @Override public void actionPerformed(ActionEvent e) { System.out.print("ARS: "+ac); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector30 implements ActionListener { private int ad; @Override public void actionPerformed(ActionEvent e) { System.out.print("EPS: "+ad); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector31 implements ActionListener {
  • 20. private int ae; @Override public void actionPerformed(ActionEvent e) { System.out.print("SISBEN: "+ae); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector32 implements ActionListener { private int af; @Override public void actionPerformed(ActionEvent e) { System.out.print("ALERGIAS: "+af); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector33 implements ActionListener { private int ag; @Override public void actionPerformed(ActionEvent e) { System.out.print("CONSUME ALGUN MEDICAMENTO: "+ag); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector34 implements ActionListener { private int ah; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE DE MEDICAMENTOS: "+ah); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector35 implements ActionListener {
  • 21. private int ai; @Override public void actionPerformed(ActionEvent e) { System.out.print("¿TRABAJA ACTUALMENTE?: "+ai); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector36 implements ActionListener { private int aj; @Override public void actionPerformed(ActionEvent e) { System.out.print("NOMBRE DE EMPRESA: "+aj); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector37 implements ActionListener { private int ak; @Override public void actionPerformed(ActionEvent e) { System.out.print("DIRECCION DE EMPRESA: "+ak); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector38 implements ActionListener { private int al; @Override public void actionPerformed(ActionEvent e) { System.out.print("CARGO OCUPADO: "+al); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector39 implements ActionListener {
  • 22. private int am; @Override public void actionPerformed(ActionEvent e) { System.out.print("AÑOS DE ANTIGUEDAD: "+am); System.out.println(((JTextField)e.getSource()).getText()); } } class Lector40 implements ActionListener { private int an; @Override public void actionPerformed(ActionEvent e) { System.out.print("EXPERIENCIA LABORAL: "+an); System.out.println(((JTextField)e.getSource()).getText()); } } } } }