Hi all, I am a newbie inspired by Vaadin 7 Dashboard Demo, it’s cool, so I want to do something in this app. The first thing I want to add is some google earth view, so I choosed gwt-earth-3 and created a widget to embed it.
But unfortunately, I cannot make the app run. The Google Earth refuse to show in the view, but the google plugin is running.
I wonder if the problem is the earth initializing part, and in gwt-earth-3 , its done in thread like this:
GoogleEarth.loadApi(new Runnable(){
@Override
public void run() {
// start the application
try {
// inform UI about result
onApiLoaded();
} finally {
}
}
Maybe the thread changing UI should be locked , but I failed, if I add :
UI.getCurrent().getSession().getLockInstance().lock();
UI.getCurrent().getSession().getLockInstance().unlock();
code in the widget, the whole widget refuse to show.
So which way should I go? Thanks everyone!