@Override protected Void doInBackground() throws Exception { boolean looping = true; while (looping) { try { Thread.sleep(10000); } catch (InterruptedException e) { } if (meff_opciones.getOptions()) { for (CarteraFrame carteraFrame : frameList) { carteraFrame.actualizarTabla(meff_opciones.Opciones); } } } return null; }
//////////////////// PARA CALL Y PUT, CAMBIAR VARIABLE TIPO public void botonAddOpcionPUT() { if (Tools.esInteger(VolumenCompra.getText())) { int seleccionado = listaOpcionesPUT.getSelectedRow(); String nombreCartera = (String) opcionesBoxPUT.getSelectedItem(); // Añadir al arraylist Opcion opcion = new Opcion(); opcion.Tipo = "PUT"; // /////////////////////"CALL" SI ES EL CASO DE OPCIONES CALL opcion.Ejercicio = (String) listaOpcionesPUT.getValueAt(0, seleccionado); opcion.Compra_Vol = (String) listaOpcionesPUT.getValueAt(1, seleccionado); opcion.Compra_Precio = (String) listaOpcionesPUT.getValueAt(2, seleccionado); opcion.Venta_Precio = (String) listaOpcionesPUT.getValueAt(3, seleccionado); opcion.Venta_Vol = (String) listaOpcionesPUT.getValueAt(4, seleccionado); opcion.Ultimo = (String) listaOpcionesPUT.getValueAt(5, seleccionado); opcion.Volumen = (String) listaOpcionesPUT.getValueAt(6, seleccionado); opcion.Hora = (String) listaOpcionesPUT.getValueAt(7, seleccionado); opcion.Vencimiento = (String) vencimientoBox.getSelectedItem(); CarteraFrame carteraFrame = buscarCarteraFrame(nombreCartera); carteraFrame.addOpcion(opcion, VolumenCompra.getText()); } }