I'm trying to run a very simple program just to get the basics down
before I dive in. I'm using the sample project that comes with GWT
Designer. It's puts a button in the upper left corner that says
"click me". When clicked it pops up a window that says hello world.
That all works fine.
I then add one line to the clickhandler. That line is as follows:
MainApp.getFinalList();
A simple call a method in my MainApp class which also contains the
main method.
'
When I add this line it breaks and I get the "plugin failed to connect
to development mode server" when it tries to open in Chrome.
I'll post the code below in case that helps. Thanks in advance for
the help. Once I get past this hurdle I should be cooking...... until
the next snag.
package com.mycompany.project.client;
import dominionPackage.*;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class ImageViewer implements EntryPoint {
private Button clickMeButton;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
clickMeButton = new Button();
rootPanel.add(clickMeButton);
clickMeButton.setText("Get card set");
clickMeButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
Window.alert("Shit!");
MainApp.getFinalList();
}
});
}
}
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment