Loading indicator between two screens GWT
gwt
Solution
The GWT class PopupPanel has an optional "glass panel" that blocks interaction with the page underneath.
final PopupPanel popup = new PopupPanel(false, true); // Create a modal dialog box that will not auto-hide
popup.add(new Label("Please wait"));
popup.setGlassEnabled(true); // Enable the glass panel
popup.center(); // Center the popup and make it visible
Problem
I have a button in my home page in GWT. When clicking to this button, the screen is updated with new GWT elements and, without send a RPC call. But between these 2 screens, there is a long time. So I want to make a loading indicator (like a animated gif) for that. How can I do it ?