PDA

View Full Version : How to use Desktop?



mmm
12 Oct 2008, 1:35 PM
Hi!

Can anyone help me and tell how to use Desktop? I'm using below code:


package mypackage.client;

import com.extjs.gxt.desktop.client.Desktop;
import com.google.gwt.core.client.EntryPoint;

public class Test implements EntryPoint {

private Desktop desktop = new Desktop();

public void onModuleLoad() {

}

}
... and getting some errors:



[ERROR] Failed to create an instance of 'mypackage.client.Test' via deferred binding
com.google.gwt.core.client.JavaScriptException: (Error): Invalid pointer

number: -2147467261
description: Invalid pointer

at com.google.gwt.dom.client.Node$.appendChild$(Native Method)
at com.extjs.gxt.desktop.client.Desktop$1.onRender(Desktop.java:58)
at com.extjs.gxt.ui.client.widget.Component.render(Component.java:791)
at com.extjs.gxt.ui.client.widget.Layout.renderComponent(Layout.java:182)
at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:173)
at com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:165)
at com.extjs.gxt.ui.client.widget.layout.RowLayout.onLayout(RowLayout.java:200)
at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:69)
at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:259)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:347)
at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:236)
at com.extjs.gxt.ui.client.widget.Container.onAttach(Container.java:354)
at com.extjs.gxt.ui.client.widget.Viewport.onAttach(Viewport.java:73)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:86)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:80)
at com.extjs.gxt.desktop.client.Desktop.<init>(Desktop.java:72)
at mypackage.client.Test.<init>(Test.java:8)

gslender
12 Oct 2008, 2:46 PM
you need to add some div in the html



<div id="x-desktop">
<dl id="x-shortcuts">
</dl>
</div>

cheers,
grant

Achmad Amri
19 Apr 2009, 11:50 PM
and how can I add new menu to the desktop start menu?

where's I can find the tutorial about com.extjs.gxt.desktop.client.Desktop?

Many Thanks :)