I am trying to create a window that includes around 100 - 5,000 "cells" of various colors. All cells are the same size (30,30), have a different background color, and an integer centered in the cell.
I first tried to build the cells by including a Label in a Layout and assigning a background color to the Layout. But this rendered too slowly for 200 cells (15 seconds)
I then switched to building the cells with just an HTMLPane with a specified background color. This noticably sped up the rendering in FireFox to around 2.5 seconds for 200 cells (although it didn't speed up IE). One issue with this is that I can't figure out how to center the text vertically in the HTMLPane.
When I tried to stress test this window with 5,000 cells it fails with the following javascript error:
Is there a lighter weight method to drawing these cells?
Smart GWT 2.1, Firefox, Internet Explorer
Thanks
I first tried to build the cells by including a Label in a Layout and assigning a background color to the Layout. But this rendered too slowly for 200 cells (15 seconds)
I then switched to building the cells with just an HTMLPane with a specified background color. This noticably sped up the rendering in FireFox to around 2.5 seconds for 200 cells (although it didn't speed up IE). One issue with this is that I can't figure out how to center the text vertically in the HTMLPane.
When I tried to stress test this window with 5,000 cells it fails with the following javascript error:
Code:
Uncaught exception escaped : com.google.gwt.core.client.JavaScriptException (InternalError): too much recursion fileName: .../sc/modules/ISC_Core.js lineNumber: 2772
Smart GWT 2.1, Firefox, Internet Explorer
Thanks
Comment