How can I improve scrolling in a JTable with a large number of rows?

John Zukowski

Starting with 1.2.2, if you enable the EnableWindowBlit client property, a different strategy for scrolling is enabled that is often times faster and consumes less memory. The strategy is the default under 1.3. To enable for a particular viewport:

aViewport.putClientProperty(JViewport.EnableWindowBlit, aViewport);

The last argument can be anything, null is off, non-null is on.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact