ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

CALCULADORA


Enviado por   •  29 de Noviembre de 2013  •  3.682 Palabras (15 Páginas)  •  215 Visitas

Página 1 de 15

/*

* To change this template, choose Tools | Templates

* and open the template in the editor.

*/

/*

* calcular.java

*

* Created on 11/04/2013, 09:32:42 PM

*/

/**

*

* @author ERIK

*/

public class NewClass extends javax.swing.JFrame {

float total=0;

float suma=8;

int auxiliar=0;

/** Creates new form calcular */

public NewClass() {

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() {

a1 = new javax.swing.JButton();

jButton2 = new javax.swing.JButton();

jButton14 = new javax.swing.JButton();

jButton15 = new javax.swing.JButton();

jButton3 = new javax.swing.JButton();

jButton4 = new javax.swing.JButton();

jButton5 = new javax.swing.JButton();

jButton16 = new javax.swing.JButton();

jButton17 = new javax.swing.JButton();

jButton18 = new javax.swing.JButton();

jButton19 = new javax.swing.JButton();

jButton20 = new javax.swing.JButton();

jButton21 = new javax.swing.JButton();

b = new javax.swing.JTextField();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

a1.setText("1");

a1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

a1ActionPerformed(evt);

}

});

jButton2.setText("jButton2");

jButton14.setText("2");

jButton14.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton14ActionPerformed(evt);

}

});

jButton15.setText("3");

jButton15.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton15ActionPerformed(evt);

}

});

jButton3.setText("4");

jButton3.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton3ActionPerformed(evt);

}

});

jButton4.setText("7");

jButton4.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton4ActionPerformed(evt);

}

});

jButton5.setText("0");

jButton5.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton5ActionPerformed(evt);

}

});

jButton16.setText("5");

jButton16.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton16ActionPerformed(evt);

}

});

jButton17.setText("8");

jButton17.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton17ActionPerformed(evt);

...

Descargar como (para miembros actualizados)  txt (16 Kb)  
Leer 14 páginas más »
Disponible sólo en Clubensayos.com