Hello;
I'm trying to use a login form using this code
Code:
package com.google.mysqlcon.client;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class MysqlCon implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
final FormPanel testPanel = new FormPanel();
testPanel.setHeading("Basic Info");
testPanel.setWidth(300);
testPanel.setPagePosition(200,100);
testPanel.setCollapsible(true);
testPanel.setFrame(true);
testPanel.setShadow(true);
TextField<String> nameBox = new TextField<String>();
nameBox.setEnabled(true);
nameBox.setEmptyText("Enter your name...");
nameBox.setFieldLabel("Name");
testPanel.add(nameBox);
RootPanel.get().add(testPanel);
}
}
When i run my project i get the error below
i dont understand why i get this error.
Is there any one who can help me?
thank you in advance for your help.
Code:
[DEBUG] [mysqlcon] - Validating newly compiled units
[ERROR] [mysqlcon] - Errors in 'file:/C:/Users/khalida/workspace/mysqlCon/src/com/google/mysqlcon/client/MysqlCon.java'
[ERROR] [mysqlcon] - Line 22: No source code is available for type com.extjs.gxt.ui.client.widget.form.FormPanel; did you forget to inherit a required module?
[ERROR] [mysqlcon] - Line 30: No source code is available for type com.extjs.gxt.ui.client.widget.form.TextField<D>; did you forget to inherit a required module?
[TRACE] [mysqlcon] - Finding entry point classes
[ERROR] [mysqlcon] - Unable to find type 'com.google.mysqlcon.client.MysqlCon'
[ERROR] [mysqlcon] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [mysqlcon] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [mysqlcon] - Failed to load module 'mysqlcon' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 ( .NET CLR 3.5.30729; .NET4.0E)' at localhost.localdomain:55207