public void Iniciar() { for (int i = 0; i < matProc.length; i++) { matProc[i][2] = 0; while (matProc[i][2] == 0) { matProc[i][2] = (int) Math.round((Math.random() * 11)); } } for (int k = 0; k < matProc.length; k++) { t_proceso = matProc[k][1]; nuevo = new nodo(); nuevo.proceso = (k + 1); nuevo.tiempo = t_proceso; nuevo.prioridad = matProc[k][2]; cab.sig = nuevo; nuevo.sig = p; cab = nuevo; } imprimirColProc(); nuevo = p.sig; int cont = 1; while (nuevo != p) { String texto = cont + ".\t " + nuevo.tiempo + " \t " + nuevo.prioridad + " "; Interfaz.agregarTxtArea_Listo1(texto); cont++; nuevo = nuevo.sig; } }
private void formWindowClosing( java.awt.event.WindowEvent evt) { // GEN-FIRST:event_formWindowClosing // TODO add your handling code here: if (padre != null) { padre.setEnabled(true); } this.dispose(); } // GEN-LAST:event_formWindowClosing
private void jBCerrarActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jBCerrarActionPerformed // TODO add your handling code here: if (padre != null) { padre.setEnabled(true); } this.dispose(); } // GEN-LAST:event_jBCerrarActionPerformed
public static void main(String[] args) { Interfaz in = new Interfaz(); in.generarMenu(); }
public static void main(String[] args) { Interfaz interfaz = new Interfaz(); interfaz.setVisible(true); }