encyclopegia.org

JFace

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." The Standard Widget Toolkit (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.

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." The Standard Widget Toolkit (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 programming to the Standard Widget Toolkit. 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 dialogs 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 program using JFace. package org.wikipedia.examples; import org.eclipse.jface.window.ApplicationWindow; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; public class HelloWorld extends ApplicationWindow { public HelloWorld() { super(null); } public void run() { setBlockOnOpen(true); open(); Display.getCurrent().dispose(); } protected Control createContents(Composite parent) { Label label = new Label(parent, SWT.CENTER); label.setText("Hello, world!"); return label; } public static void main(String[] args) { HelloWorld prog = new HelloWorld(); prog.run(); } } ==See also== Standard Widget Toolkit ==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

References

No reference rows published for this article.

Cite this article

MLA

"JFace." encyclopegia.org, 2026, https://encyclopegia.org/wiki/jface. Accessed 24 November 2026.

Chicago

"JFace." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/jface.

APA

encyclopegia.org. (2026). JFace. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/jface

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1364362095 · 0.5 · snapshot enwiki-001364362095

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.