SWT VS SWING, why choose SWING

xiaoxiao2021-03-06  16

Looking at NetBeans and Eclipse disputes on these two days of 9CBS, the key is the key to this low-level (not the sky in its source code). The key is the dispute between SWT and Swing.

I seem to have returned to the Web, then Netscape is in the day, and Microsoft IE is constantly eating the market of Communicator. When you want to write a web page, I often need to run IE and Communicator on the machine, because they have a slight difference in many ways, and this is indeed true that I am really troubled. I hope to strictly follow the W3C standard, not using MS unique expansion in the web page (it is often related to Windows instead of web), even if it is indeed a web, I also hope that it will be submitted to W3C a standard rather than another stove . In addition, Communicator supports JavaScript, and MS more wants users to use VBScript, I try to persuade developers who use VBScript, trying to turn them to JavaScript, but the impact of MS is powerful, and finally I have to face this situation: When non-IE core browsers, many websites look so bad, especially in China. Worse, it may not open the webpage in the root. This only does not happen only those sites that strict (or basic) follow W3C standards.

History is always amazing, similar situations appear again in today's Java. When Swing is a GUI standard for Java, IBM throws SWT to do almost work with Swing. In fact, from the implementation of SWT, SWT is actually AWT SWING. I personally don't like the AWT UI component, think that the speed is slightly unfair, when SWING came out, I even thought that Sun completely throws up the UI components in AWT.

(Many people think that the AWT UI is completely consistent with the UI on Host, I don't think so. When I still use C write programs, I often design my interface with MacOS or other more beautiful patterns. I hope SWING can lead UI design trend, just like Mac, of course, it is clear that Metal has failed, Ocean has not been able to do this) Of course, I don't think Swing is perfect, but I have developed. People in the web page will know that when you want the world to run your code, the standard is a much more important thing!

转载请注明原文地址:https://www.9cbs.com/read-46032.html

New Post(0)