Ejemplo n.º 1
0
 public void establecerClienteInicio() {
   int valor =
       Integer.parseInt(JOptionPane.showInputDialog("Ingrese posicion de nodo a ingresar"));
   Prestamos pre =
       new Prestamos(
           CodigoPrestamo.getText(),
           CodigoLibro.getText(),
           Cedula.getText(),
           FechaSalida.getText(),
           FechaMaximaDevolucion.getText());
   listaPrestamos.insertarInicio(pre, valor);
   JOptionPane.showMessageDialog(null, "Se agregó un elemento a la lista");
   CodigoPrestamo.setText(null);
   CodigoLibro.setText(null);
   Cedula.setText(null);
   FechaSalida.setText(null);
   FechaMaximaDevolucion.setText(null);
   panel.setViewportView(new PanelDibujoPrestamos(listaPrestamos.size(), "", listaPrestamos));
 }