Newbie problem with Getting Started example

17 views
Skip to first unread message

pdebaets

unread,
Jan 2, 2009, 2:25:00 AM1/2/09
to Gwt Window Manager
I'm getting a compile error "GFrame cannot be resolved to a type".

Using:
gwt-windows 1.4.10
gwm 0.6.6
gwt-widgets 0.1.3
eclipse 3.2.1

Here's the code I'm running:
--------------------------------------------------------------------------------------
package com.ps.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import org.gwm.client.impl.DefaultGFrame;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class gwmt implements EntryPoint {

/**
* This is the entry point method.
*/
public void onModuleLoad() {
GFrame window = new DefaultGFrame("Simple window with widget");
window.setWidth(380);
window.setHeight(440);
window.setLocation(65, 10);
window.setContent(new Label("My Label"));
window.setVisible(true);
}
}

------------------------------------------------------------------
Thanks for any help you can provide

Peter De Baets

Luciano Broussal

unread,
Jan 2, 2009, 3:29:52 AM1/2/09
to gwt-windo...@googlegroups.com
Hello and Happy new year to all ;)

you probably forgot to declare the gwm dependency declaration in your gwt.xml project file:

eg :

... ... ...

HTH.

Luciano

Luciano Broussal

unread,
Jan 2, 2009, 3:31:22 AM1/2/09
to Gwt Window Manager
<module>
<inherits name='com.google.gwt.user.User'/>
...
<!-- Gwm dependency -->
<inherits name='org.gwm.GwtWindowManager'/>
...
<entry-point class='<your-module-package>.client.MyModule'/>
...
</module>

On Jan 2, 9:29 am, "Luciano Broussal" <luciano.brous...@gmail.com>
wrote:
> Hello and Happy new year to all ;)
> you probably forgot to declare the gwm dependency declaration in your
> gwt.xml project file:
>
> eg :
>
> ... ... ...
>
> HTH.
>
> Luciano
>

pdebaets

unread,
Jan 3, 2009, 1:04:44 AM1/3/09
to Gwt Window Manager
Luciano,

Happy New Year to you!

I think I have the dependency declaration in there. The file is
"gwmt.gwt.xml". Here's the xml:

--------------------------
<module>

<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>

<!-- Gwm dependency -->
<inherits name='org.gwm.GwtWindowManager'/>

<!-- Specify the app entry point class. -->
<entry-point class='com.ps.client.gwmt'/>

</module>
---------------------------

Peter De Baets

Luciano Broussal

unread,
Jan 3, 2009, 4:20:43 AM1/3/09
to gwt-windo...@googlegroups.com
Thanks,

I don't see the GFrame import declaration in your sample ...

What is sure according the error log you posted it is a problem of classpath or a missing import or a gwt dependency missing.

it remains now  2 possibilities :

Classpath and import of GFrame declaration

HTH

Luciano

pdebaets

unread,
Jan 3, 2009, 1:43:59 PM1/3/09
to Gwt Window Manager
Thanks Luciano. That was it.

I needed the following import declarations in order to run the first
example in the "Getting Started" section:

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import org.gwm.client.GFrame;
import org.gwm.client.impl.DefaultGFrame;

Peter De Baets
Reply all
Reply to author
Forward
0 new messages