It's probably there - the window is probably just obscuring it.
On Aug 27, 2009, at 9:23 PM, Scott Lanham wrote:
That works. But when Window.open appears after the Alert.alert call
the alert
doesn't display.
On Fri, 28 Aug 2009 11:14:28 am Greg Brown wrote:
I am trying to show an alert using the following line:
Alert.alert( MessageType.INFO, "Loaded.", display );
Where display is the Display passed to the applications startup
method. The
applications Window hasn't been opened yet. The alert isn't
displayed.
In this case should the alert be displayed?
I would think so. In fact, I just created an empty app to verify
this,
and it worked as expected. What happens when you run this app on your
system?
package org.apache.pivot.wtk.test;
import org .apache.pivot.collections.Map;
import org.apache.pivot.wtk.Alert;
import org.apache.pivot.wtk.Application;
import org.apache.pivot.wtk.DesktopApplicationContext;
import org.apache.pivot.wtk.Display;
import org.apache.pivot.wtk.MessageType;
public class AlertTest implements Application {
@Override
public void startup(Display display, Map<String, String>
properties) throws Exception {
Alert.alert(MessageType.INFO, "Loaded.", display);
}
@Override
public boolean shutdown(boolean optional) {
return false;
}
@Override
public void suspend() {
}
@Override
public void resume() {
}
public static void main(String[] args) {
DesktopApplicationContext.main(AlertTest.class, args);
}
}