Para exibir uma mensagem de alerta:
Alert alerta = new Alert("Atenção", "Valor incorreto!", null, AlertType.ERROR);
alerta.setTimeout(2000); // 2 segundos use Alert.FOREVER para ficar sempre até usuario pressionar tecla
display.setCurrent(alerta, this);
AlertTypes:
ALARM, CONFIRMATION, ERROR, INFO e WARNING