Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/02/2012, 14:30
Blashak
 
Fecha de Ingreso: noviembre-2007
Mensajes: 471
Antigüedad: 16 años, 6 meses
Puntos: 2
Respuesta: barra de progreso

Ronruby,

lo tengo establecido el minomo y maximo de la barra.
barraProgress.setMaximum(tamaño_fichero_temp);
barraProgress.setMinimum(0);
.
tambien agrege
validate();
repaint();

y continua sin funcionar
codigo
barraProgress.setMaximum(tamaño_fichero_temp);
barraProgress.setMinimum(0);
barraProgress.setValue(0);

InputStream in = new FileInputStream(archivo_temp);
OutputStream out = new FileOutputStream(ruta_destino_paste);

byte[] buf = new byte[1024];
int len;
int count = 0;
while ((len = in.read(buf)) > 0) {

out.write(buf, 0, len);
count +=len;
System.out.println(count);


barraProgress.setValue(count);
ventana.validate();
ventana.repaint();




}