0% found this document useful (0 votes)
24 views8 pages

Java Swing Final Exam Application

proyecto java 1

Uploaded by

Cesar. C
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views8 pages

Java Swing Final Exam Application

proyecto java 1

Uploaded by

Cesar. C
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EXAMEN FINAL

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

/**

* @author Jessica Angeles

*/ public class ExamenFinal extends

[Link] {

/**

* Creates new form ExamenFinal

*/

public ExamenFinal() {

initComponents();
}

/**

* This method is called from within the constructor to initialize the form. * WARNING: Do NOT

modify this code. The content of this method is always

* regenerated by the Form Editor.

*/

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

cbopago = new [Link]<>();

cboestadocivil = new [Link]<>();

txtcontrato = new [Link]();

txtestadocivil = new [Link]();

jLabel1 = new [Link](); jLabel2 = new

[Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);

setCursor(new [Link]([Link].DEFAULT_CURSOR));

[Link](new [Link]<>(new String[] { "Contrato", "De


0 a 1500 soles + 20%", "De 1501 a 3000 soles + 10%", "De 3001 a 6000 soles + 5%", "De 6001 soles
a más + 0%" })); [Link](new [Link]() {
public void actionPerformed([Link] evt) {
cbopagoActionPerformed(evt);

});

[Link](new [Link]<>(new String[] { "Estado


Civil", "Soltero + 100 soles de bonificación", "Casado + 150 soles de bonificación" }));
[Link](new [Link]() { public void
actionPerformed([Link] evt) {
cboestadocivilActionPerformed(evt);

});

[Link]("contrato + sueldo neto");

[Link]("Estado Civil + bonificación");

[Link] layout = new [Link](getContentPane());

getContentPane().setLayout(layout); [Link](

[Link]([Link])

.addGroup([Link]()

.addGap(18, 18, 18)

.addGroup([Link]([Link])

.addGroup([Link]()

.addComponent(jLabel2, [Link].DEFAULT_SIZE,
[Link].DEFAULT_SIZE, Short.MAX_VALUE)

.addPreferredGap([Link])

.addComponent(txtestadocivil, [Link].PREFERRED_SIZE, 320,


[Link].PREFERRED_SIZE))

.addGroup([Link]()

.addGroup([Link]([Link])
.addComponent(cbopago, [Link].PREFERRED_SIZE, 135,
[Link].PREFERRED_SIZE)

.addComponent(cboestadocivil, [Link].PREFERRED_SIZE, 141,


[Link].PREFERRED_SIZE))

.addGap(0, 0, Short.MAX_VALUE))

.addGroup([Link],
[Link]()

.addGap(0, 0, Short.MAX_VALUE)

.addComponent(jLabel1, [Link].PREFERRED_SIZE, 135,


[Link].PREFERRED_SIZE)

.addPreferredGap([Link])
.addComponent(txtcontrato, [Link].PREFERRED_SIZE, 319,
[Link].PREFERRED_SIZE)))

.addGap(20, 20, 20))

);

[Link](

[Link]([Link])

.addGroup([Link]()

.addGap(32, 32, 32)

.addComponent(cbopago, [Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE, [Link].PREFERRED_SIZE)

.addGap(99, 99, 99)

.addGroup([Link]([Link])

.addComponent(txtcontrato, [Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE, [Link].PREFERRED_SIZE)

.addComponent(jLabel1, [Link].PREFERRED_SIZE, 14,


[Link].PREFERRED_SIZE))

.addGap(50, 50, 50)

.addComponent(cboestadocivil, [Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE, [Link].PREFERRED_SIZE)

.addPreferredGap([Link], 66,
Short.MAX_VALUE)
.addGroup([Link]([Link])

.addComponent(jLabel2, [Link].PREFERRED_SIZE, 20,


[Link].PREFERRED_SIZE)

.addComponent(txtestadocivil, [Link].PREFERRED_SIZE,
[Link].DEFAULT_SIZE, [Link].PREFERRED_SIZE))

.addGap(101, 101, 101))

);

pack();

}// </editor-fold>

private void cbopagoActionPerformed([Link] evt) {

// TODO add your handling code here: String mensaje

= "El contrado eligido es "; mensaje = mensaje +


[Link]().toString();

[Link](mensaje);

private void cboestadocivilActionPerformed([Link] evt) {

// TODO add your handling code here: String mensaje = "Su

estado civil es "; mensaje = mensaje +

[Link]().toString();

[Link](mensaje);

/**

* @param args the command line arguments

*/

public static void main(String args[]) {

/* Set the Nimbus look and feel */

//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">

/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.

* For details see [Link]

*/

try {

for ([Link] info :


[Link]()) {

if ("Nimbus".equals([Link]())) {

[Link]([Link]());

break;

} catch (ClassNotFoundException ex) {


[Link]([Link]()).log([Link]
, null, ex);

} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
, null, ex);

} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
, null, ex);

} catch ([Link] ex) {

[Link]([Link]()).log([Link]
, null, ex);

//</editor-fold>

/* Create and display the form */

[Link](new Runnable() {

public void run() { new

ExamenFinal().setVisible(true);

});

// Variables declaration - do not modify

private [Link]<String> cboestadocivil;

private [Link]<String> cbopago;

private [Link] jLabel1; private

[Link] jLabel2; private

[Link] txtcontrato; private

[Link] txtestadocivil;

// End of variables declaration


}

You might also like