`
dbaspider
  • 浏览: 256341 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

JAVA GUI: SWT JFACE and SWING

阅读更多


SWT(Standard Widget Toolkit),最初由IBM开发的一套用于Java的图形用户界面系统,用来与Swing竞争。开源集成开发环境Eclipse就是用Java和SWT开发的。

 

JFace is defined by the Eclipse project as "a UI toolkit that provides helper classes for developing UI features that can be tedious to implement."[1] SWT is an open source widget toolkit for Java designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.

It is a layer that sits on top of the raw widget system, and provides classes for handling common UI programming tasks. It brings model view controller programming to the Standard Widget Toolkit.
1.Provides Viewer classes that handle the tedious tasks of populating, sorting, filtering, and updating widgets
2.Provides Actions to allow users to define their own behavior and to assign that behavior to specific components, e.g. menu items, tool items, push buttons, etc.
3.Provides registries that hold Images and Fonts
4.Defines standard dialogs and wizards, and defines a framework for building complex interactions with the user
5.Its primary goal is to free the developer up, letting the developer focus on the implementation of his or her specific application without having to be concerned with the underlying widget system or solving problems that are common in almost all UI applications.
6.A primary concern of the Eclipse group when developing JFace was that under no circumstances did they want to hide the SWT component implementation from the programmer. JFace is completely dependent on SWT, but SWT is not dependent on JFace. Furthermore, the Eclipse Workbench is built on both JFace and SWT; in some instances, it bypasses JFace and accesses SWT directly.

The Abstract Window Toolkit (AWT) is Java's original platform-independent windowing, graphics, and user-interface widget toolkit. The AWT is now part of the Java Foundation Classes (JFC) — the standard API for providing a graphical user interface (GUI) for a Java program. AWT is also the GUI toolkit for a number of Java ME profiles. For example, Connected Device Configuration profiles require Java runtimes on mobile telephones to support AWT.

 

Swing is the primary Java GUI widget toolkit. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.

Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables, and lists.

Unlike AWT components, Swing components are not implemented by platform-specific code. Instead they are written entirely in Java and therefore are platform-independent. The term "lightweight" is used to describe such an element.[1]

 

0
0
分享到:
评论

相关推荐

    Eclipse SWT JFace核心应用相关应用及源码.rar

    基于 Java 桌面程序开发的图形库主要有 3 种,它们分别是 AWT、Swing 和 SWT。用前 两种库编写的桌面程序不够美观而且执行效率低,响应速度慢,SWT 恰好克服了 AWT 和 Swing 的缺点,它丰富的组件可以使程序员开发出...

    Java GUI 程序设计.pdf

    Java GUI 程序设计 AWT/Swing SWT/JFace

    SWT/JFace的核心应用与实战教程的PDF电子版.rar

    基于 Java 桌面程序开发的图形库主要有 3 种,它们分别是 AWT、Swing 和 SWT。用前 两种库编写的桌面程序不够美观而且执行效率低,响应速度慢,SWT 恰好克服了 AWT 和 Swing 的缺点,它丰富的组件可以使程序员开发出...

    如何进行Java GUI图形用户界面编程

    SWT/JFace象一股清新的风吹入了Java的GUI开发领域,为这个沉闷的领 域带来了勃勃生机。虽然SUN不接纳SWT/JFace作为Java中的一种图形API标准,但它虽然借着Eclipse的优异表现,以不可阻挡之势向前发展着。

    JavaGUI程序设计

    介绍javaGUI程序设计,包括高级事件的处理,新的JFC_SWING接口编程,以及各种特殊功能.

    第9章 JFace GUI程序设计.pptx

    使用JFace设计GUI程序可以快速地创建一个应用程序框架,程序窗体内部的界面组件设计可以使用前面叙述的SWT组件,结合JFace提供的助手组件较为容易地完成设计。 Eclipse WindowBuilder也提供了足够的支持

    SWT Swing与AWT区别

    本文对 Eclipse 的 Standard Windows Toolkit with JFace、Java 的 Swing 和 Abstract Windows Toolkit GUI 工具包进行了比较。通过此处提供的比较,您可以确定在自己的新应用程序中应该使用哪个 GUI 工具包。 在大...

    SWT/jface in action 相关pdf文档(中文版)

    开发基于SWT/JFace的应用程序 ■ 用SWT内置的图形语义环境生成定制化图形 ■ 理解SWT和JFace后面的结构和方法论 ■ 开阔你的GUI设计的知识面 ■ 构建和部署Eclipse的SWT和JFace应用程序或独立应用程序

    Eclipse_Swt_Jface_核心应用_部分19

    第1章 Java语言的GUI历史 2 1.1 最初的AWT 2 1.2 Swing工具包 3 1.3 Eclipse的诞生 3 1.4 Eclipse贡献SWT工具包 5 1.4.1 SWT的结构 6 1.4.2 SWT所支持的操作系统 6 1.5 Sun AWT/Swing与Eclipse SWT 7 ...

    Java高手真经(编程基础卷)光盘全部源码 免积分

    javaswing.zip 18.Swing图形界面开发——Java文本编辑器 javaswt.zip 19.SWT图形界面开发——Java文本编辑器 javajface.zip 20.SWT增强组件库JFace 第5部分(5个程序包) javaapplet.zip 21.Applet网络组件——...

    java高手真经 光盘源码

    javaswing.zip 18.Swing图形界面开发——Java文本编辑器 javaswt.zip 19.SWT图形界面开发——Java文本编辑器 javajface.zip 20.SWT增强组件库JFace 第5部分(5个程序包) javaapplet.zip 21.Applet网络组件——...

    Java高手真经(编程基础卷)光盘全部源码

    javaswing.zip 18.Swing图形界面开发——Java文本编辑器 javaswt.zip 19.SWT图形界面开发——Java文本编辑器 javajface.zip 20.SWT增强组件库JFace 第5部分(5个程序包) javaapplet.zip 21.Applet网络组件——电子...

    Qt学习之路 绝对经典

    所以,如果使用 Java,那么你最好的选择就是AWT/Swing,或者也可以使SWT/JFace,但是,C++的GUI编程给了你更多的选择:wxWidget, gtk++以及Qt。这几个库我都有接触,但是接触都不是很多,只能靠一些资料和自己的一点...

    Eclipse下的可视化界面设计WindowBuilder插件所有版本打包

    具备SWT/JFACE开发、Swing开发及GWT 开发三大功能,是一款不可多得的Java体系中的WYSIWYG工具。 WindowBuilder的主要用户界面构建为: Design View – the main visual layout area. Source View – write code and...

    第11章 表格设计与数据处理.ppt

    SWT GUI设计主要目的之一就是为用户直观、方便、高效地输入数据提供接口。 多数情况下,输入的数据被保存在数据库中,或者程序中使用的数据就是直接从数据库中获取的。 大量结构化数据一种主要的输出形式是表格。...

Global site tag (gtag.js) - Google Analytics