This instruction explains minimal set of steps you should do to start working with the library. For more detailed instructions and how-to dcoumentation please visit the FAQ page.
If you are a newcomer in GWT programming please click this link first.
So to make it work do the next steps:
<module> <inherits name='com.google.gwt.user.User'/> <inherits name='org.gwt.advanced.Grid'/> <entry-point class='mypackage.Test'/> </module>
//create a new model containing employees Editable model = new EditableGridDataModel( new Object[][] { new String[]{"John", "Doe"}, new String[]{"Piter", "Walkman"}, new String[]{"Rupert", "Brown"} } ); // create a new grid of employees GridPanel panel = new GridPanel(); panel.createEditableGrid( new String[]{"First Name", "Surname"}, new Class[]{LabelCell.class, LabelCell.class}, null ).setModel(model); RootPanel.get().add(panel);
<html> <head> <title>Advanced GWT Components Demo Application</title> <meta name='gwt:module' content='org.gwt.advanced.Demo'> <link id="advancedTheme" type="text/css" rel="stylesheet" href="./advanced/themes/default/theme.css"/> <link type="text/css" rel="stylesheet" href="css/demo.css"/> </head> <body> <script language="javascript" src="org.gwt.advanced.Demo.nocache.js"></script> <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe> </body> </html>
<stylesheet src="advanced/themes/default/theme.css"/>
If your project utilizes Maven, you can also add the following dependency: