Un programita sencillo

Solo disponible en BuenasTareas
  • Páginas : 5 (1123 palabras )
  • Descarga(s) : 0
  • Publicado : 24 de junio de 2010
Leer documento completo
Vista previa del texto
/*
* planilla.java
*
* Created on 23 de junio de 2010, 17:56
*/

package planilla_sueldo;

/**
*
* @author Administrador
*/
public class planilla extends javax.swing.JFrame {

/** Creates new form planilla */
public planilla() {
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.
*/
//
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jTextField5 = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();jTextField6 = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jTextField7 = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
jTextField8 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jTextField9 = new javax.swing.JTextField();
jButton3 = new javax.swing.JButton();jTextField10 = new javax.swing.JTextField();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(51, 51, 255));
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {formMouseClicked(evt);
}
});

jLabel1.setText("NOMBRE DEL EMPLEADO");

jLabel2.setFont(new java.awt.Font("Arial Black", 2, 18));
jLabel2.setText("PLANILLA DE SUELDOS");

jLabel3.setText("SUELDO BASE");

jLabel4.setText("HORAS EXTRAS");

jLabel5.setText("VALOR HORAS EXTRAS");

jButton1.setText("CALCULO HORASEXTRAS");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
}
});

jLabel6.setText("BONIFICACION");

jLabel7.setText("IGSS");

jLabel8.setText("VAROS DESCUENTOS");

jButton2.setText("TOTALDESCUENTOS");
jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton2MouseClicked(evt);
}
});

jButton3.setText("TOTAL A PAGAR");

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jButton1)
.addComponent(jLabel7)...
tracking img