`
dbaspider
  • 浏览: 264832 次
  • 性别: 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
分享到:
评论

相关推荐

    swt/jface实例开发

    【SWT/JFace实例开发】是一份针对Java GUI编程的学习资源,主要聚焦于SWT(Standard Widget Toolkit)和JFace这两个强大的图形用户界面库。SWT是Eclipse项目的一部分,它提供了一套与操作系统直接交互的原生控件,...

    SWT JFace IN ACTION(中文版)

    - **形成的原因**:SWT和JFace的出现主要是为了克服当时主流的Java GUI库Swing的一些局限性,比如性能问题、外观与本地操作系统不一致等问题。SWT和JFace的结合提供了更强大、更灵活的GUI开发工具集。 - **与Swing...

    SWT JFace In Action 中文版

    ### SWT与JFace知识点概述...SWT和JFace为Java开发者提供了一套强大的工具集,不仅能够构建高性能的跨平台应用程序,还能极大地提高开发效率。通过学习这两项技术,开发者能够在短时间内创建出既美观又实用的用户界面。

    Swt JFace in Action 中文版

    《Swt JFace in Action》是一本专注于Java图形用户界面(GUI)开发的专业书籍,中文版的出现使得更多的中国开发者能够深入理解并掌握Swt和JFace这两个强大的库。本书详细介绍了如何使用Eclipse的这两项核心技术来...

    全面介绍SWT-JFace

    SWT(Standard Widget Toolkit)是Java编程环境中用于创建图形用户界面(GUI)的一个开源库,由Eclipse基金会维护。它提供了丰富的控件和组件,使得开发者可以构建功能强大的桌面应用程序。JFace是建立在SWT之上的更...

    SWT JFace in Action

    - 高性能:SWT 直接利用本地平台的图形资源,因此相比于完全基于 Java 的 GUI 库(如 AWT 和 Swing),它可以提供更好的性能和响应速度。 - 原生外观:由于 SWT 在各个平台上都能呈现原生的外观,因此开发的应用...

    swt jface入门教材

    - **高性能**:由于SWT直接利用了本地操作系统的小部件,因此相比其他基于Java的GUI库(如Swing),性能更加优越。 - **高度定制化**:SWT允许开发人员对GUI进行深度定制,包括布局、样式和行为等方面。 **1.1.2 ...

    SWT JFace in Action - GUI Design with Eclipse 3.0-1932394273

    SWT提供了丰富的控件库,包括按钮、文本框、列表、树等,这些控件可以在不使用Java AWT/Swing的情况下开发出高性能的应用程序。 - **JFace**: JFace是在SWT之上构建的一组高级控件和框架,旨在简化GUI应用程序的开发...

    SWT And JFace

    《SWT与JFace完全指南》是一本深入探讨Java GUI编程技术的专业书籍,主要围绕SWT(Standard Widget Toolkit)和JFace两个库展开。这两者是Eclipse IDE的基础组件,用于构建用户界面,提供了丰富的控件和强大的功能,...

    SWT_JFace_in_action_jface_action_

    通过阅读这本书,开发者将能够熟练掌握SWT和JFace,从而能够开发出既美观又高效的Java GUI应用。无论是初学者还是经验丰富的开发者,都能从书中获得宝贵的实战经验和理论知识,提升自己的GUI开发技能。

    The.Definitive.Guide.to.SWT.and.JFace.eBook-LiB

    与Java Swing不同,SWT直接调用本地操作系统API,从而实现了更高的性能和更好的外观与感觉。SWT组件包括按钮、文本框、滚动条等基本元素,以及对话框、菜单和树视图等更复杂的控件。通过SWT,开发者可以创建出与运行...

    swt/Jface中文教程

    - **形成的原因**:SWT和JFace的出现主要是为了克服早期Java GUI框架Swing的一些局限性,比如性能问题、跨平台一致性问题以及对本地操作系统的集成度不够高等问题。 - **与Swing的区别**:相比于Swing,SWT更接近...

    swt,jface笔记

    SWT (Standard Widget Toolkit) 和 JFace 是两个与Java GUI编程密切相关的库,它们都是由Eclipse基金会开发的。在Java应用程序中,特别是对于开发桌面应用,SWT和JFace提供了一种高效、功能丰富的用户界面(UI)构建...

    Eclipse SWT/JFace核心应用

    Eclipse SWT (Standard Widget Toolkit) 和 JFace 是两个在Java编程环境中用于构建图形用户界面(GUI)的重要库,尤其在开发Eclipse插件和RCP(Rich Client Platform)应用程序时非常常见。它们提供了丰富的控件、...

    Manning - SWT JFace in Action

    《SWT JFace in Action》是由Manning出版社出版的一本专著,主要聚焦于Java编程领域中的图形用户界面(GUI)开发技术。本书深入探讨了SWT(Standard Widget Toolkit)和JFace这两个强大的库,它们是Eclipse IDE背后...

    manning swt jface in action

    《SWT JFace in Action》是由Manning出版社出版的一本技术专著,专注于Java图形用户界面(GUI)开发中的SWT(Standard Widget Toolkit)和JFace框架。这本书深入浅出地介绍了如何使用这两种强大的工具来构建高效、...

    SWT/JFace 3.5 API (CHM)

    SWT的设计目标是提供比Java AWT和Swing更高的性能,同时保持跨平台兼容性。在SWT 3.5版本中,开发者可以找到各种控件的API,包括基础控件的创建、事件处理、布局管理以及对话框的使用。 2. JFace:JFace建立在SWT之...

    SWT JFace in action API

    SWT (Standard Widget Toolkit) 和 JFace 是两个重要的开源组件库,它们主要用于构建Java图形用户界面(GUI)。在Java开发中,尤其是对于桌面应用程序,SWT 和 JFace 提供了丰富的控件和高级功能,使得开发者能够...

    Java GUI程序设计.pdf

    Java GUI程序设计

    记事本 用SWT和Jface编写 可直接运行

    SWT是Eclipse项目提供的一种用于构建Java图形用户界面(GUI)的开源库,它允许开发者创建原生的、高性能的GUI组件,与Java Swing相比,SWT提供了更接近操作系统原生外观和感觉的界面。SWT通过本地API调用来实现,这...

Global site tag (gtag.js) - Google Analytics