Programacion

Solo disponible en BuenasTareas
  • Páginas : 7 (1639 palabras )
  • Descarga(s) : 0
  • Publicado : 21 de agosto de 2012
Leer documento completo
Vista previa del texto
package afndaunafd.vista;


//imports copiados


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;









import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import java.io.BufferedReader;
importjava.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Locale;

//






import afndaunafd.modelo.Automata;
import afndaunafd.modelo.Transformador;
import java.util.TreeSet;
import javax.swing.JOptionPane;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;


public class pantalla extendsjavax.swing.JFrame {
int verticalidad=0;
String [] lineas=new String [5];
String [][] mistrancisiones;//=new String[][];

///texto quitado

/** 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")
//
private void initComponents() {

jDialog1 = new javax.swing.JDialog();
jButton2 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
txtestFinales = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();txtNumEstados = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel5 = new javax.swing.JLabel();
txtAlfabeto = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jLabel3 = new javax.swing.JLabel();jLabel6 = new javax.swing.JLabel();
txtNumEstados1 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
txtestFinales1 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
txtAlfabeto1 = new javax.swing.JLabel();
jButton4 = new javax.swing.JButton();
path = new javax.swing.JLabel();
jButton5 = newjavax.swing.JButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jSeparator1 = new javax.swing.JPopupMenu.Separator();
jMenuItem2 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem3 = new javax.swing.JMenuItem();javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
jDialog1.getContentPane().setLayout(jDialog1Layout);
jDialog1Layout.setHorizontalGroup(
jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
jDialog1Layout.setVerticalGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(java.awt.Color.red);
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18NsetForeground(new java.awt.Color(255, 0, 0));
setIconImages(null);

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

jLabel1.setBackground(new java.awt.Color(0, 51,...
tracking img