How to use “Scheduler.get().scheduleDeferred” the right way in GWT?
问题 Here is my Pseudocode in my GWT app. -Visible the loading Label -Loading text from properties file (may take long) -Invisible the loading Label & Visible the main HTMLPanel So I want to use Scheduler.get().scheduleDeferred to achive that, here is the code: loadingLabel.setVisible(true); Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { loadingText(); } } loadingLabel.setVisible(false); mainHTMLPanel.setVisible(true); But it doesn't work correctly as