Could any one help me? Many thanks! On Nov 11, 3:26 am, Jason <[email protected]> wrote: > here is my simplied code. I create a label and a flextable. the label > is updated every 300ms. This page make my computer's CPU go up to > 100%. > > public void onModuleLoad() { > > final Label dateLabel = new Label(); > final FlexTable flextable = new FlexTable(); > > RootPanel.get("errorLabelContainer").add(dateLabel); > RootPanel.get("errorLabelContainer").add(flextable); > > for(int i =0;i<600;i++) > { > flextable.setWidget(i, 0, new Label("test")); > flextable.getFlexCellFormatter().setStyleName(30, 10, "demo- > table-cell"); > for(int j =0;j<300;j++) > { > flextable.setWidget(i, j, new Label("test")); > flextable.getFlexCellFormatter().setStyleName(30, 10, "demo- > table-cell"); > } > } > > final Timer schedule = new Timer() { > public void run() { > Date currdate = new Date(); > String date = > DateTimeFormat.getMediumDateTimeFormat().format(currdate); > dateLabel.setText(date); > schedule(300); > } > }; > schedule.schedule(300); > > }
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
