コード例 #1
0
ファイル: Procesos.java プロジェクト: RafaelMalgon/SO
 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;
   }
 }
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
ファイル: Main.java プロジェクト: buucooe/SimuladorBanco
  public static void main(String[] args) {
    Interfaz in = new Interfaz();

    in.generarMenu();
  }
コード例 #5
0
  public static void main(String[] args) {
    Interfaz interfaz = new Interfaz();

    interfaz.setVisible(true);
  }