Swing is an example of MVC design

Source: Internet
Author: User
Tags interface
Design

Regardless of whether your project uses swing technology, I would say that swing is a well-designed Java package that is full of the wisdom of the master. If you learn Java but can't even write a button, just like you learn Visual Basic but do not use the button, it is absolutely not to be forgiven. Swing technology has been widely used in foreign countries, because of the free Java, easy to learn and the full trust of Java technology, many companies early on the application of everything, from the background service to the foreground Man-machine interface, all moved to the Java development. Swing has appeared for nearly 10 years, with its advanced design ideas, has never lagged behind the language of the interface development technology, the use and understanding of swing design ideas, the software developers benefit.

Swing design is an example of MVC. Although the concept of MVC is a bit of a flood, but really can understand and master, in the design and development of natural reveal is not rare. Remember to use VC + + Development Program, MFC Wizard is also generated document and view two classes, at that time has been strange why so around the circle. The design of swing, then, is filled with the traces of MVC. Careful study of swing in the event monitoring, model-view separation, renderer/editor mechanism, pluggable lookandfeel and other mechanisms, is simply an art, full of beauty. And if you hate these designs and think they're weird, chances are you've just turned around from VB or Delphi, and these quick-development tools have helped you to "harm" you.

Swing is a good design, but perhaps an overly academic design makes swing run tricky and difficult to learn. This objectively does make swing not widely used, and is widely criticized. Remember the previous "swing has a successful application?" Such posts have always been a hot topic. IBM and so took the opportunity to seize the pigtail to make SWT attracted a lot of people, so that the Java GUI technology is facing the risk of fragmentation.

However, with the continuous upgrading and optimization of Java, swing speed has been improving, aesthetics is also improving, based on the successful application of swing more and more. There is less debate about whether swing is dead or being replaced by SWT or whether it can be used for desktop applications. But developers who like and are proficient in swing technology, especially at home, are still very few.

Fortunately, the situation is turning better. Sun is aware of the threat from Eclipse and SWT, and has made great efforts to develop NetBeans, whose latest version supports swing GUI visual design beyond all rivals, and its rich-client framework is maturing, This is a great boost to swing development and application. With the decline of the web boom, people began to think more rationally the choice of B/S and C/s architectures, some areas of swing technology has become the preferred solution. With the emergence of outstanding swing products such as jgoodies, Jide and Twaver, Swing will become more popular in desktop applications at a faster rate.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.