Swing Design Goals

Swing项目目标与设计理念
Swing项目的总体目标是创建一套可扩展的GUI组件,以帮助开发者更快地为商业应用开发强大的Java前端。为了实现这一目标,Swing团队在项目早期确立了多个设计原则:完全用Java实现以确保跨平台一致性;提供单一API支持多种外观风格;采用可分离的模型架构以支持模型驱动编程;遵循JavaBeans设计原则以确保组件在IDE和构建工具中的良好表现;与AWT API保持兼容以便于迁移。
The overall goal for the Swing project was:
To build a set of extensible GUI components to enable developers to more rapidly develop powerful Java front ends for commercial applications.
To this end, the Swing team established a set of design goals early in the project that drove the resulting architecture. These guidelines mandated that Swing would:
 
1) Be implemented entirely in Java to promote cross-platform consistency and easier maintenance.
2) Provide a single API capable of supporting multiple look-and-feels so that developers and end-users would not be locked into a single look-and-feel. pluggable look-and-feel architecture.
3) Enable the power of model-driven programming without requiring it in the highest-level API. seperable model architecture.
4) Adhere to JavaBeans design principles to ensure that components behave well in IDEs and builder tools.
5) Provide compatibility with AWT APIs where there is overlapping, to leverage the AWT knowledge base and ease porting.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值