Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
XTabController tabAnimeCtrl = new XTabController(new XNavigationController(new AnimationsController()));
tabAnimeCtrl.set("Animations", new Image("images/icons/tab0.png"), new Image("images/icons/tab0-selected.png"));
XTabController tabWidgetsCtrl = new XTabController(new XNavigationController(new WidgetsController()));
tabWidgetsCtrl.set("Widgets", new Image("images/icons/tab3.png"), new Image("images/icons/tab3-selected.png"));
XTabBarController tabBarController = new XTabBarController();
tabBarController.addControllers(tabWidgetsCtrl, tabAnimeCtrl);
tabBarController.attach(RootLayoutPanel.get());