View Full Version : [FIXED] Bug [1.1] Desktop problem with MessageBox.alert() not close after press OK

18 Sep 2008, 7:41 AM
GWT 1.5.2
GXT 1.1
Linux Ubuntu
whe show MessageBox Alert then click ok it not close, it stay on task bar

import com.extjs.gxt.desktop.client.Desktop;
import com.extjs.gxt.desktop.client.StartMenu;
import com.extjs.gxt.desktop.client.TaskBar;
import com.extjs.gxt.ui.client.event.MenuEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.menu.MenuItem;
import com.google.gwt.core.client.EntryPoint;

public class WebDesktop implements EntryPoint {

public void onModuleLoad() {
Desktop desktop = new Desktop();
TaskBar taskbar = desktop.getTaskBar();
StartMenu startMenu = taskbar.getStartMenu();

startMenu.add(new MenuItem("Alert", new SelectionListener<MenuEvent>() {
public void componentSelected(MenuEvent ce) {
MessageBox.alert("Test Alert", "Alert",null);



18 Sep 2008, 10:40 AM
MessageBoxes should not be added to the task bar. Fixed in SVN.