Java matrizes

Disponível somente no TrabalhosFeitos
  • Páginas : 12 (2881 palavras )
  • Download(s) : 0
  • Publicado : 11 de março de 2013
Ler documento completo
Amostra do texto
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mat;

import javax.swing.JOptionPane;

/**
*
* @author 1111809010
*/
public class Mult_mat extends javax.swing.JFrame {

/**
* Creates new form Mult_mat
*/
public Mult_mat() {
initComponents();
}

/**
* This method is called from within theconstructor 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">//GEN-BEGIN:initComponents
private void initComponents() {

jPanel1 = new javax.swing.JPanel();
jTa11 = newjavax.swing.JTextField();
jTa12 = new javax.swing.JTextField();
jTa13 = new javax.swing.JTextField();
jTa21 = new javax.swing.JTextField();
jTa22 = new javax.swing.JTextField();
jTa23 = new javax.swing.JTextField();
jTa31 = new javax.swing.JTextField();
jTa32 = new javax.swing.JTextField();
jTa33 = new javax.swing.JTextField();
jTb11 =new javax.swing.JTextField();
jTb12 = new javax.swing.JTextField();
jTb13 = new javax.swing.JTextField();
jTb21 = new javax.swing.JTextField();
jTb22 = new javax.swing.JTextField();
jTb23 = new javax.swing.JTextField();
jTb31 = new javax.swing.JTextField();
jTb32 = new javax.swing.JTextField();
jTb33 = new javax.swing.JTextField();jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLr11 = new javax.swing.JLabel();
jLr12 = new javax.swing.JLabel();
jLr13 = new javax.swing.JLabel();
jLr21 = new javax.swing.JLabel();
jLr31 = new javax.swing.JLabel();jLr22 = new javax.swing.JLabel();
jLr32 = new javax.swing.JLabel();
jLr23 = new javax.swing.JLabel();
jLr33 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jTAmat1 = new javax.swing.JTextField();
jTAmat2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jTBmat1 = new javax.swing.JTextField();jTBmat2 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jBokgrau = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jTa11.addActionListener(new java.awt.event.ActionListener() {
public voidactionPerformed(java.awt.event.ActionEvent evt) {
jTa11ActionPerformed(evt);
}
});

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

jButton1.setText("OK");
jButton1.addActionListener(newjava.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton2.setText("Limpar");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {jButton2ActionPerformed(evt);
}
});

jButton3.setText("Cancelar");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});

jLabel1.setText("Resultado:");

jLr31.setText("'");

jLabel2.setText("Qual tipo de...
tracking img