HOME

TheInfoList



OR:

JFace is defined by the Eclipse project as "a UI
toolkit A toolkit is an assembly of tools; set of basic building units for user interfaces. The word toolkit may refer to: * Abstract Window Toolkit * Accessibility Toolkit * Adventure Game Toolkit * B-Toolkit * Battlefield Mod Development Toolkit * Ch ...
that provides helper classes for developing UI features that can be tedious to implement."Eclipse programmer's guide entry on JFace
/ref> The
Standard Widget Toolkit The Standard Widget Toolkit (SWT) is a graphical widget toolkit for use with the Java platform. It was originally developed by Stephen Northover at IBM and is now maintained by the Eclipse Foundation in tandem with the Eclipse IDE. It is an alter ...
(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.


Structure

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 A model is an informative representation of an object, person or system. The term originally denoted the plans of a building in late 16th-century English, and derived via French and Italian ultimately from Latin ''modulus'', a measure. Models c ...
programming to the
Standard Widget Toolkit The Standard Widget Toolkit (SWT) is a graphical widget toolkit for use with the Java platform. It was originally developed by Stephen Northover at IBM and is now maintained by the Eclipse Foundation in tandem with the Eclipse IDE. It is an alter ...
. #Provides Viewer classes that handle the tedious tasks of populating, sorting, filtering, and updating widgets #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. #Provides registries that hold Images and Fonts #Defines standard
dialog Dialog is an online information service owned by ProQuest, who acquired it from Thomson Reuters in mid-2008. Dialog was one of the predecessors of the World Wide Web as a provider of information, though not in form. The earliest form of the Dial ...
s and wizards, and defines a framework for building complex interactions with the user #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. #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.


Example

The following is a basic
Hello World ''Hello'' is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses ''Hello'', with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the '' Norwich ...
program using JFace. import org.eclipse.jface.window.ApplicationWindow; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class HelloWorld extends ApplicationWindow


See also

* SWT


References


Bibliography

* * *


External links


Wiki JFace
*
Using the Eclipse GUI outside the Eclipse Workbench, Part 1:
Using JFace and SWT in stand-alone mode, by Adrian Emmenis
Using the Eclipse GUI outside the Eclipse Workbench, Part 2:
Using the JFace image registry, by Adrian Emmenis {{DEFAULTSORT:Jface Eclipse technology Eclipse software Articles with example Java code Software using the Eclipse license