cn73
26-03-2004, 09:05
In riferimento al metodo della classe JComponent:
public void setDoubleBuffered(boolean aFlag)
Set whether the receiving component should use a buffer to paint. If set to true, all the drawing from this component will be done in an offscreen painting buffer. The offscreen painting buffer will the be copied onto the screen. Swing's painting system always use a maximum of one double buffer. If a Component is buffered and one of its ancestor is also buffered, the ancestor buffer will be used.
chiedo a qualcuno se ha realmente capito il significato a "basso livello" di questo metodo, e l'utilità...
Applicandolo a uno scrollpane contenente una lista riempita mano a mano con un thread, a volte scompare la barra di scorrimento verticale e gli ultimi elementi della lista sono irraggiungibili. (Questo sempre con una vecchia jvm 1.2, dalla 1.3 in poi non ho problemi)
public void setDoubleBuffered(boolean aFlag)
Set whether the receiving component should use a buffer to paint. If set to true, all the drawing from this component will be done in an offscreen painting buffer. The offscreen painting buffer will the be copied onto the screen. Swing's painting system always use a maximum of one double buffer. If a Component is buffered and one of its ancestor is also buffered, the ancestor buffer will be used.
chiedo a qualcuno se ha realmente capito il significato a "basso livello" di questo metodo, e l'utilità...
Applicandolo a uno scrollpane contenente una lista riempita mano a mano con un thread, a volte scompare la barra di scorrimento verticale e gli ultimi elementi della lista sono irraggiungibili. (Questo sempre con una vecchia jvm 1.2, dalla 1.3 in poi non ho problemi)