Codigo Para Suma De Numeros Mayas Java

Páginas: 11 (2595 palabras) Publicado: 31 de agosto de 2011
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* inicio.java
*
* Created on Aug 21, 2011, 2:30:35 AM
*/

package mayas;
import javax.swing.JOptionPane;

/**
*
* @author froditoooooooooooooooo
*/
public class inicio extends javax.swing.JFrame {
String [] dos= new String[6];
String [] result= new String[6];
String[] uno= new String[6];
int uno1,uno2,uno3,uno4,
uno5,uno6,dos1,dos2,
dos3,dos4,dos5,res1,
res2,res3,res4,res5,
res6,dos6;
int [] r= new int[6];
int rest;
boolean error=false;
/** Creates new form inicio */
public inicio() {
initComponents();
}

/** This method is called from within the constructor to
* initialize theform.
* 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() {

u205 = new javax.swing.JTextField();
u204 = new javax.swing.JTextField();
u203 = newjavax.swing.JTextField();
u202 = new javax.swing.JTextField();
u201 = new javax.swing.JTextField();
u200 = new javax.swing.JTextField();
d204 = new javax.swing.JTextField();
d205 = new javax.swing.JTextField();
d201 = new javax.swing.JTextField();
d200 = new javax.swing.JTextField();
d203 = new javax.swing.JTextField();
d202= new javax.swing.JTextField();
r204 = new javax.swing.JTextField();
r205 = new javax.swing.JTextField();
r201 = new javax.swing.JTextField();
r200 = new javax.swing.JTextField();
r203 = new javax.swing.JTextField();
r202 = new javax.swing.JTextField();
jButton4 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();jLabel2 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(255, 255, 0));

u204.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {u204ActionPerformed(evt);
}
});

d204.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
d204ActionPerformed(evt);
}
});

r204.setEnabled(false);
r204.addActionListener(new java.awt.event.ActionListener() {
public voidactionPerformed(java.awt.event.ActionEvent evt) {
r204ActionPerformed(evt);
}
});

r205.setEnabled(false);

r201.setEnabled(false);

r200.setEnabled(false);

r203.setEnabled(false);

r202.setEnabled(false);

jButton4.setBackground(new java.awt.Color(0, 0, 0));
jButton4.setFont(newjava.awt.Font("Ravie", 0, 11)); // NOI18N
jButton4.setForeground(new java.awt.Color(0, 204, 255));
jButton4.setText("Resultado");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});

jLabel1.setBackground(newjava.awt.Color(0, 0, 0));
jLabel1.setFont(new java.awt.Font("Harlow Solid Italic", 2, 18)); // NOI18N
jLabel1.setForeground(new java.awt.Color(0, 153, 204));
jLabel1.setText("Suma con numeros mayas");

jLabel2.setBackground(new java.awt.Color(0, 0, 0));
jLabel2.setForeground(new java.awt.Color(0, 0, 255));
jLabel2.setText("teclee * para señalar...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Codigo Java Bases Numericas
  • Codigos Para Java
  • Codigo java para una calculadora
  • Numero Para El 25 De Mayo
  • Código De Programa Para Sumar Dbs
  • codigo MIPS para ordenar numeros
  • Codigo Para Ordenar Cuatro Numeros
  • diagrama de flujo para sumar los n numeros impares

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS