开发者

Java Swing knowledge for a web-developer [closed]

开发者 https://www.devze.com 2023-02-17 11:42 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question 开发者_运维问答

There are many good books about Java and (almost) every one contains a big section about Swing.

I'm involved in web-development. Is knowing about "Swing" useful for Java web-development?


Applets can be embedded into a web-app., and applications can connect to them. Either provide a richer GUI than is possible with JavaScript/HTML, but unless they bring something specific to the web-app. (rarely the case), it is better to avoid the rich client GUIs & stick with D/HTML.


You could perhaps learn patterns that could be reused in a web application, but no, Swing is not used in webapps.


Probably not. Swing isn't used at all in web development, unless your web app involves Java applets -- Java GUI code which is downloaded to the client and run inside the web browser.


If you want to develop web application using a 'component' approach - like GWT - having knowledge of Swing can help you.

GWT or Vaadin framework are using widgets (window, panel, menu, text area) and layout them to organize the client view. The application is not going from pages to pages but instead have a single entry point that will show and hide windows and panels.

In this way they are very close to Swing (even if they are simpler to handle). You'll find easier to switch from Swing to GWT (and vis-versa) than to switch from a page based framework (like struts) to GWT.


Understanding the concepts involved in Swing can help in understanding the concepts of Java Server Faces.

But no, other than in applets, Swing is not used for web development.

0

精彩评论

暂无评论...
验证码 换一张
取 消