Hacker News new | comments | show | ask | jobs | submit login

Programming with GWT is nothing like swing. Nothing.

Oh really.

I've programmed both. Have you?

Let's see if you can tell which of these snippets is GWT and which is Swing (I've renamed JButton to Button to not make it trivially easy for you):

    Button b = new Button("Click me", new ClickHandler() {
      public void onClick(ClickEvent event) {
        //do something

    Button b = new Button("Click Me");
    b.addActionListener(new ActionListener(){
        void actionPerformed(ActionEvent e){
            //do something

The first is unidiomatic GWT, the latter is swing. I can count the times I've set up a button with a click handler without UIBinder on one hand. So I'll assume based on your post that you always instantiated buttons that way since you never learned how to use GWT beyond how to run the compiler.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact