java桌面应用程序开发
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Java for servers, personal computers and mobile devices is a great technology. As a result of the need to Java cross-platform features, so the Java on the server and the application of mobile device is a great success. But Java in the case of personal computer applications and on the server and the application of mobile devices is different, but it will soon change, at least, sooner than you think. In this article, I will analyze the Java application in the desktop environment will be how to get promoted, and specifically the Java GUI (graphical user interface) of the three main tools: the AWT and Swing, and SWT. In the following paragraphs, I will develop a complete Java desktop applications.
The Java and the desktop
Now, the popular desktop platform for Windows, Mac, and Linux. But they are not perfect, Windows dominated the desktop operating system market, its application and development has a huge population, but it is expensive and there are many security vulnerabilities. Linux has a solid foundation, it is open source software, more reliable than Windows. Macs is very easy to operate and not the target of the hacker, but compared with Windows and Linux, Mac hardware and software of the optional scope is very limited. Companies and individuals choose their operating system based on many factors. Less cost and high safety factor is preferred, this leads to some organizations from the Windows and choose Linux. For many users, availability and support for the original application is a very important factor, which means that the Windows will continue to enjoy the huge market. Mac has its own loyal users, which makes the Mac can still live, and the popularity of Linux on the desktop and the success of the Mac created diversity, this diversity is the Java need, this diversity makes Java on the desktop has a pivotal position.
Cross-platform support
Java running on all relevant operating systems, including Windows, Mac and Linux. For any organization, he wants to existing applications from one operating system transplant to another operating system without having to do too much change, so the Java it is their first choice of desktop development platform. May use visual tools of Microsoft, it is easy to applications, but it will make you be binding on the Windows platform. Many people may want to use Linux instead of Windows at once to avoid problems caused by
a Microsoft operating system vulnerability. The user cannot tolerate is one of the problems when brought from Windows to Linux huge cost. If your application USES Java build, you don't have these problems, the Java graphical user interface will look like the operating system are you using, and does not need to do any changes. If one day have a desktop operating system appears, Java is a safe bet, because it is now able to run on Windows and Linux, then presumably it can run in the future may appear on the operating system of the operating system by Microsoft may sooner or later, or the open source community, or other people developed.
The characteristics of the rich
Initially, Java is only very limited some characteristics to build graphical user interface. Idea is to use the platform independent Java application program interface package different local graphical user interface of the operating system, called the abstract