Metodo De Biseccion En Java
Facultad de ingeniería
Laboratorio de Programación Avanzada y Métodos Numéricos
Proyecto 3
Lizbeth Trujillo Perez
Fecha: 06 de noviembre de 2012package biseccion1;
public class interfazgrafica extends javax.swing.JFrame {
/**
* Creates new form interfazgrafica
*/
public interfazgrafica() {
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
* regeneratedby the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1 =new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
tol = newjavax.swing.JTextField();
a = new javax.swing.JTextField();
b = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
resultado = new javax.swing.JTextField();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Tolerancia");
jLabel2.setText("Dato 1");
jLabel3.setText("Dato 2");jLabel4.setText("Resultado");
jButton1.setText("Obtener Resultado");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public voidactionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
resultado.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {
resultadoActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new...
Regístrate para leer el documento completo.