Ejemplo radio
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Ejemplo radio

on

  • 216 views

buton

buton

Statistics

Views

Total Views
216
Views on SlideShare
216
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ejemplo radio Document Transcript

  • 1. packagePrueba; importjavax.swing.JOptionPane; public class frmejemplo1 extends javax.swing.JFrame { public double afi; public frmejemplo1() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtdni = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); txtnom = new javax.swing.JTextField(); txtape = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); rbtafp = new javax.swing.JRadioButton(); rbtonp = new javax.swing.JRadioButton();
  • 2. jLabel4 = new javax.swing.JLabel(); txtsu = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtdes = new javax.swing.JTextField(); txtsuneto = new javax.swing.JTextField(); btnnuevo = new javax.swing.JButton(); btncalcular = new javax.swing.JButton(); btnsalir = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos del Trabajador")); jLabel1.setText("DNI"); jLabel2.setText("Nombres"); jLabel3.setText("Apellidos"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup()
  • 3. .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(txtdni, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(37, 37, 37) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtape)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtnom, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(20, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel2)
  • 4. .addComponent(txtnom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtdni, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3) .addComponent(txtape, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 15, Short.MAX_VALUE)) ); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(36, 11, -1, -1)); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Afiliación")); buttonGroup1.add(rbtafp); rbtafp.setText("AFP 11%"); rbtafp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEventevt) { rbtafpActionPerformed(evt); } }); buttonGroup1.add(rbtonp); rbtonp.setText("ONP 15%");
  • 5. rbtonp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEventevt) { rbtonpActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rbtafp) .addComponent(rbtonp)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(rbtafp) .addGap(18, 18, 18) .addComponent(rbtonp) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  • 6. ); getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, -1, 1)); jLabel4.setText("Sueldo"); getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, -1, 1)); getContentPane().add(txtsu, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 160, 80, 30)); jLabel5.setText("Total descuento"); getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 210, -1, 1)); jLabel6.setText("SueldoNeto"); getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 260, -1, 1)); getContentPane().add(txtdes, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 210, 75, 1)); getContentPane().add(txtsuneto, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 260, 80, -1)); btnnuevo.setText("NUEVO"); btnnuevo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEventevt) { btnnuevoActionPerformed(evt); } });
  • 7. getContentPane().add(btnnuevo, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 320, -1, -1)); btncalcular.setText("CALCULAR"); btncalcular.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEventevt) { btncalcularActionPerformed(evt); } }); getContentPane().add(btncalcular, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 320, 1, -1)); btnsalir.setText("SALIR"); btnsalir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEventevt) { btnsalirActionPerformed(evt); } }); getContentPane().add(btnsalir, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 320, -1, 1)); pack(); }// </editor-fold> private void btnnuevoActionPerformed(java.awt.event.ActionEventevt) { txtape.setText("") ; txtnom.setText("") ;
  • 8. txtdes.setText("") ; txtdni.setText("") ; txtsu.setText(""); txtsuneto.setText("") ; } private void btnsalirActionPerformed(java.awt.event.ActionEventevt) { int x=JOptionPane.showConfirmDialog(rootPane, "DeseaSalir", "Salir", JOptionPane.INFORMATION_MESSAGE); if(x==0) System.exit(0); } private void rbtafpActionPerformed(java.awt.event.ActionEventevt) { afi=0.11; } private void rbtonpActionPerformed(java.awt.event.ActionEventevt) { afi=0.15; } private void btncalcularActionPerformed(java.awt.event.ActionEventevt) { double s, d, sn; s=Double.parseDouble(txtsu.getText()); d=s*afi; sn=s-d;
  • 9. txtdes.setText(String.valueOf(d)); txtsuneto.setText(String.valueOf(sn)); } /** * @paramargs 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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(frmejemplo1.class.getName()).log(java.util.logging.Level.SEVERE , null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(frmejemplo1.class.getName()).log(java.util.logging.Level.SEVERE , null, ex);
  • 10. } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(frmejemplo1.class.getName()).log(java.util.logging.Level.SEVERE , null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(frmejemplo1.class.getName()).log(java.util.logging.Level.SEVERE , null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new frmejemplo1().setVisible(true); } }); } // Variables declaration - do not modify privatejavax.swing.JButtonbtncalcular; privatejavax.swing.JButtonbtnnuevo; privatejavax.swing.JButtonbtnsalir; privatejavax.swing.ButtonGroup buttonGroup1; privatejavax.swing.JLabel jLabel1; privatejavax.swing.JLabel jLabel2; privatejavax.swing.JLabel jLabel3; privatejavax.swing.JLabel jLabel4; privatejavax.swing.JLabel jLabel5;
  • 11. privatejavax.swing.JLabel jLabel6; privatejavax.swing.JPanel jPanel1; privatejavax.swing.JPanel jPanel2; privatejavax.swing.JRadioButtonrbtafp; privatejavax.swing.JRadioButtonrbtonp; privatejavax.swing.JTextFieldtxtape; privatejavax.swing.JTextFieldtxtdes; privatejavax.swing.JTextFieldtxtdni; privatejavax.swing.JTextFieldtxtnom; privatejavax.swing.JTextFieldtxtsu; privatejavax.swing.JTextFieldtxtsuneto; // End of variables declaration } Otro package Prueba; importjavax.swing.JOptionPane; publicclass frmejemplo1a extendsjavax.swing.JFrame { public frmejemplo1a() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">
  • 12. private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtdni = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); txtnom = new javax.swing.JTextField(); txtape = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); txtsu = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); txtju = new javax.swing.JTextField(); txtpres = new javax.swing.JTextField(); txtali = new javax.swing.JTextField(); txtdescu = new javax.swing.JTextField(); txtsuneto = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); Chkjudi = new javax.swing.JCheckBox(); Chkpres = new javax.swing.JCheckBox(); Chkali = new javax.swing.JCheckBox(); btnnuevo = new javax.swing.JButton();
  • 13. btncalcular = new javax.swing.JButton(); btnsalir = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos del Trabajador")); jLabel1.setText("DNI"); jLabel2.setText("Nombres"); jLabel3.setText("Apellidos"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(txtdni, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(37, 37, 37)
  • 14. .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtape)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtnom, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(20, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel2) .addComponent(txtnom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtdni, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
  • 15. .addComponent(jLabel3) .addComponent(txtape, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 15, Short.MAX_VALUE)) ); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(36, 11, -1, -1)); jLabel4.setText("Sueldo"); getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, 1, -1)); getContentPane().add(txtsu, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 160, 80, 30)); jLabel5.setText("Judicial"); getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 160, 1, -1)); jLabel6.setText("Prestamo"); getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 210, 1, -1)); jLabel7.setText("Alimentos"); getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 250, 1, 12)); jLabel8.setText("Total Descuento");
  • 16. getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 310, 90, 20)); jLabel9.setText("Sueldo Neto"); getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 350, 90, 20)); getContentPane().add(txtju, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 160, 70, 30)); getContentPane().add(txtpres, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 200, 70, 30)); getContentPane().add(txtali, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 240, 70, 30)); getContentPane().add(txtdescu, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 310, 70, 30)); txtsuneto.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtsunetoActionPerformed(evt); } }); getContentPane().add(txtsuneto, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 350, 70, 30)); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("DESCUENTOS")); Chkjudi.setText("Judicial"); Chkpres.setText("Prestamo");
  • 17. Chkali.setText("Alimentos"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(13, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Chkpres) .addComponent(Chkjudi) .addComponent(Chkali)) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(Chkpres)) .addComponent(Chkjudi))
  • 18. .addGap(7, 7, 7) .addComponent(Chkali) .addContainerGap(20, Short.MAX_VALUE)) ); getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 230, 1, -1)); btnnuevo.setText("NUEVO"); btnnuevo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnnuevoActionPerformed(evt); } }); getContentPane().add(btnnuevo, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 410, -1, -1)); btncalcular.setText("CALCULAR"); btncalcular.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btncalcularActionPerformed(evt); } }); getContentPane().add(btncalcular, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 410, -1, -1)); btnsalir.setText("SALIR");
  • 19. btnsalir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnsalirActionPerformed(evt); } }); getContentPane().add(btnsalir, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 410, -1, -1)); pack(); }// </editor-fold> private void txtsunetoActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void btnnuevoActionPerformed(java.awt.event.ActionEvent evt) { txtape.setText("") ; txtnom.setText("") ; txtali.setText("") ; txtdni.setText("") ; txtsu.setText(""); txtsuneto.setText("") ; txtju.setText(""); txtpres.setText(""); txtdescu.setText(""); Chkali.setSelected(false);
  • 20. Chkjudi.setSelected(false); Chkpres.setSelected(false); } private void btncalcularActionPerformed(java.awt.event.ActionEvent evt) { double s, dj, da,dp, sn, td; s=Double.parseDouble(txtsu.getText()); if(Chkjudi.isSelected()){ dj=s*0.05; } else{ dj=0; } if(Chkpres.isSelected()){ dp=s*0.08; } else{ dp=0; } if(Chkali.isSelected()){ da=s*0.15; } else{ da=0; } td=dj+dp+da;
  • 21. sn=s-td; txtali.setText(String.valueOf(da)); txtju.setText(String.valueOf(dj)); txtpres.setText(String.valueOf(dp)); txtdescu.setText(String.valueOf(td)); txtsuneto.setText(String.valueOf(sn)); } private void btnsalirActionPerformed(java.awt.event.ActionEvent evt) { int x=JOptionPane.showConfirmDialog(rootPane, "Desea Salir", "Salir", JOptionPane.INFORMATION_MESSAGE); if(x==0) System.exit(0); } /** * @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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try {
  • 22. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(frmejemplo1a.class.getName()).log(java.util.logging.Level.SEVER E, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(frmejemplo1a.class.getName()).log(java.util.logging.Level.SEVER E, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(frmejemplo1a.class.getName()).log(java.util.logging.Level.SEVER E, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(frmejemplo1a.class.getName()).log(java.util.logging.Level.SEVER E, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() {
  • 23. new frmejemplo1a().setVisible(true); } }); } // Variables declaration - do not modify private javax.swing.JCheckBox Chkali; private javax.swing.JCheckBox Chkjudi; private javax.swing.JCheckBox Chkpres; private javax.swing.JButton btncalcular; private javax.swing.JButton btnnuevo; private javax.swing.JButton btnsalir; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JTextField txtali; private javax.swing.JTextField txtape; private javax.swing.JTextField txtdescu; private javax.swing.JTextField txtdni;
  • 24. private javax.swing.JTextField txtju; private javax.swing.JTextField txtnom; private javax.swing.JTextField txtpres; private javax.swing.JTextField txtsu; private javax.swing.JTextField txtsuneto; // End of variables declaration }