1. StartMenu needs to be part of a GWT module.
2. You need to inherit that module.
3. It won't work anyway, since you can't use JFrames in a GWT client.

Reference:

http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html


There used to be a page on modules, too, but I can't find it in the
1.6 docs. Anyone know what happened to it?


On Wed, Jun 3, 2009 at 2:02 PM, Aximilli302 <[email protected]> wrote:
>
> Good day all. I'm having a slight issue with what was(hopefully) to be
> a simple application using GTW.
>
> All I am doing is creating a button which, when clicked, refences
> another project I have created, to play a pacman game. Here is the
> click handler for the button.
>
>        public void onClick(ClickEvent event) {
>                                new StartMenu();
>                        }
>
> StartMenu is the opening class, which creates a new JFrame, and begins
> the game. I have imported the project already, however, I have
> recieved the following error-
>
> No source code is available for type Gui.StartMenu; did you forget to
> inherit a required module?
> Note- Gui is the package
>
> The source code is there, as I can look at it. Any thoughts?
>
> Oh, I also use eclipse, so if that makes a difference.....
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to