Is Google Web Toolkit similar to AWT and Swing

前端 未结 7 1105
遇见更好的自我
遇见更好的自我 2020-12-30 09:46

I\'ve looked breifly into GWT and like the idea that I can develop in Java and have the application compile down to HTML and JavaScript. Is the concept behind GWT and AWT an

7条回答
  •  死守一世寂寞
    2020-12-30 10:36

    It is programmed very similarly(patterned after Swing) and the code is 100% java (compiles with a standard Java compiler without errors), but the way it works is very different. Instead of compiling into a Java app, it compiles into Javascript that is sent to your browser.

    This ability to program good active Javascript without actually coding Javascript and HTML is pretty nice.

    Also, since it programs much like swing, you can do stuff like adding listeners that effect other controls pretty easily.

提交回复
热议问题