About This Blog

This blog contains some information about Java programming strongly connected to making web pages, and JEE applications.

11 January 2008 - 23:36Weekend with GWT

How quick is possible to learn GWT? My first impressions, are very good, even I have not full support on FreeBSD, I can still view compiled pages. Learning curve looks very short if you have any experience with e.g. Swing, I started some time ago maybe an hour and get quit interesting results. So we have different panels, form UI elements, labels, trees, menus etc. All Widgets can have their own listeners, which are really simple in use - for example for Tree you can write:

final Tree categoryTree = new Tree();
categoryTree.addTreeListener(new TreeListener() {
    public void onTreeItemSelected(TreeItem treeItem) {
        editLabel.setText(treeItem.getText());
    }
    public void onTreeItemStateChanged(TreeItem treeItem) {
        //nothing
    }
});

Simple example from today's first coding evening you can see here.

Sample HTML Sample Java Source

No Comments | Tags: GWT