Sencha GXT - Powerful Java UI Framework for Enterprise Apps

Sencha.com

9 min read Original article ↗

Sencha GXTThe Java Framework

Build enterprise web apps in pure Java.

GXT is a comprehensive Java framework for building web apps with the GWT compiler. Write your UI in Java and compile it into highly optimized, cross-platform HTML5, with 140+ high-performance components ready to use.

GXT 4.2Java 11 · 17 · 21 LTSGWT 2.11.0

mavencom.sencha.gxt:gxt:4.2.0

G2

4.1/5 on G2

10,000+ enterprise customers, including 60% of the Fortune 100

Download the SDK and add it to your Build Path. Full guide

Project Build Path

# 1. Download the GXT SDK (free trial or support portal) and unzip it
# 2. Copy the GXT jars into your project and add them to the Build Path
#    (next to the GWT SDK)

my-app/
  lib/
    gxt-4.2.0.jar                 # GXT components
    gxt-chart-4.2.0.jar           # optional: charts
    gxt-theme-triton-4.2.0.jar    # optional: Triton theme
  src/
  war/

Trusted by the world’s leading companies

Loading live GXT app…Compiled from Java with GWT

What you can build

Real apps. Real source code.

Start from a working reference app instead of a blank page. Every demo below is built with GXT, and the source is open on GitHub so you can fork it, read it, and reuse the patterns.

Terminal

$ git clone https://github.com/sencha/gxt-demo-edash.git

$ cd gxt-demo-edash

$ mvn install

Live demo

Executive Dashboard

A feature-rich admin application template that combines charts, grids and navigation in one Java app, styled with a custom theme generated by the Theme Builder. Use it as a starting point for internal analytics and reporting tools.

ChartsGridTheme BuilderAdmin template

Terminal

$ git clone https://github.com/sencha/gxt-demo-explorer.git

$ cd gxt-demo-explorer

# import it into your IDE as an existing Maven project

Live demo

GXT Examples Explorer

Every major component in action: grids, charts, forms, trees, layouts, drag and drop, windows and more. Each example shows its Java source and runs under all four packaged themes.

Kitchen sinkUiBinder variantsTheme switcher

Terminal

$ git clone https://github.com/sencha/gxt-demo-grids.git

$ cd gxt-demo-grids

$ mvn install

Large Grids

Shows how to wire up GXT grids, and lets you experiment with simulated record sets of different sizes to see how the grids perform as your data grows.

GridLarge record setsMaven project

Terminal

$ git clone https://github.com/sencha/gxt-demo-desktop.git

$ cd gxt-demo-desktop

$ mvn clean install

Web Desktop

A desktop-style workspace in the browser, built from GXT windows, menus and toolbars, all written in Java. A good reference for multi-window, power-user applications.

WindowMenusToolbars

Data-heavy back offices

Grids, editors and filters for operations, finance and admin teams.

Engineering & science systems

Document and equipment management like CERN’s EDMS web interface.

Control interfaces

Sophisticated, real-time operator consoles built entirely in Java.

Analytics & planning tools

Large-scale, web-centric apps with rich charting and modelling.

Code it in Java

Typed, testable UI code. No JavaScript required.

GXT components are plain Java classes with generics, so your IDE catches mistakes at compile time. These snippets come from the official GXT examples. Pick a component to see how it’s built.

A grid built for business data

Handle large record sets with sorting, grouping, column reordering and saved state built in. Values are bound through generated PropertyAccess interfaces instead of strings.

  • Compile-time safe columns with ColumnConfig<M, V>
  • Custom cells, grouping, row numbering, row expanders and checkbox selection
  • State management to remember column order, widths and sort

Component library

140+ components. One Java API.

High-performance, fully customizable UI components that work alongside native GWT widgets, templates and the layout manager. Hundreds of user extensions are also available from the Sencha community.

Grids

Grid · LiveGridView · GroupingView · Aggregation · RowExpander · CheckBox selection

Charts

Line · Area · Bar · Column · Pie · Radar · Scatter · Gauge

Forms & fields

TextField · ComboBox · DateField · Spinner · Slider · DualListField · FileUpload

Layouts

BorderLayout · VBox / HBox · Accordion · Card · Portal · HtmlLayout

Trees & TreeGrids

Tree · TreeGrid · Async loading · Checkbox trees · Filtering

Windows & dialogs

Window · Dialog · MessageBox · WindowManager · Notifications

Menus, toolbars & tabs

MenuBar · ToolBar · Overflow toolbar · Status toolbar · TabPanel

Drag & drop

Grid, list and tree DnD · Draggable · Resizable · Reordering

Data package

ListStore · TreeStore · Loaders · RPC / JSON / XML proxies · Sorting & filtering

Data binding

Editor framework · List & grid binding · RequestFactory binding

Views & templates

ListView · XTemplates · Custom cells · QuickTips & ToolTips

Draw & state

Draw sprites · Animation · StateManager for grids, trees and layouts

Theming

Change the look with one line.

Every GXT widget is themed. Choose one of four packaged themes by inheriting its module, or generate your own theme from a short config file with the Theme Builder.

Portfolio ContentPanel

AddRemoveExport

Company Symbol Last Change
Northwind Traders NWT 71.72 +0.02
Contoso Ltd CTSO 29.01 +0.42
Fabrikam Inc FBKM 83.81 -0.28
Tailspin Toys TSPN 52.55 +0.01
Adventure Works ADVW 64.13 -0.31

Enable one theme at a time per EntryPoint. Triton and Neptune ship as separate jars (gxt-theme-triton, gxt-theme-neptune); Blue is the default.

Theme Builder: your brand, generated

Describe colors, fonts, borders, radii and gradients in a simple config, and the Theme Builder generates a jar containing every appearance your app needs. With more than 350 configuration properties, you can theme almost every widget and cell in GXT. Triton itself was generated this way.

Developer workflow

Fits the Java toolchain you already use.

GXT is a Java library and a GWT module, so it works with your existing IDE, build and back end, and your team can stay in one language from server to UI.

Modern Java, actively maintained

Keeping pace with Java and GWT.

4.0.x

GXT 4.0

  • Touch device and modern browser support
  • New Triton theme, generated with the Theme Builder
  • GWT 2.7.0 and 2.8.2 support
  • Java 6, 7, 8 and 9 support

4.1.x

GXT 4.1

  • Java 11 support
  • GWT 2.9.0 support

4.2.x · latest

GXT 4.2

  • Java LTS 11, 17 and 21
  • GWT 2.11.0, with improved Java emulation and runtime fixes
  • Write front-end and back-end code with modern Java syntax

Still on GXT 2?

Move to GXT 4 for Super Dev Mode, faster compiles, current Java and touch support. Sencha Professional Services can help you plan and run the upgrade.

G2

4.1 / 5

Security & Compliance

Recognized By Leading Software Review Sites

60%

Of Fortune 100 Companies

500K

Active Forum Members

Customer stories

Real companies, real results with GXT.

Las Cumbres Observatory

Control interface

“We couldn’t have created such a sophisticated control interface without Sencha GXT. We love using the Sencha product given the high level of abstraction …you really don’t have to be a web developer to use the product.”

CERN

Engineering data management

“CERN uses GXT to build the web interface of the EDMS system. It stores information about the design, manufacturing, testing, and maintenance of various pieces of equipment installed at CERN…”

ClearFactr

Analytics platform

“Sencha GXT allowed us to take our years of large-scale app dev experience and transition to a high-performance, highly scalable, web-centric platform in a very short time. We’re able to give our users a great experience…”

Learn & get help

Everything you need to ship with GXT.

Documentation

Getting started, API reference, theming and Maven guides for GXT 4.x.

Examples

The Examples Explorer and Admin Dashboard template, running live.

Ask Sencha AI

Ask GXT questions in plain language and get answers grounded in the docs.

Community

Join Sencha developers on Discord and Stack Overflow.

FAQ

Frequently asked questions

What is Sencha GXT?

GXT is a comprehensive Java framework for building web apps with the GWT (formerly Google Web Toolkit) compiler. You write your app in Java, and GWT compiles it into highly optimized, cross-platform HTML5 code. GXT provides 140+ high-performance, customizable UI components, including grids, trees, lists, forms, menus, toolbars, panels, windows and charts.

Which Java and GWT versions does GXT support?

GXT 4.2.x supports Java LTS 11, 17 and 21 with GWT 2.11.0. GXT 4.1.x supports Java 11 with GWT 2.9.0.

How do I add GXT to a Maven project?

Add the Sencha MyGet repository (https://sencha.myget.org/F/maven/maven/) to your pom.xml, put your support-portal credentials in ~/.m2/settings.xml, then add the com.sencha.gxt:gxt dependency, plus gxt-chart or a theme jar if you need them. To get MyGet access, reach out to our sales team. See the Maven guide.

Can I try GXT before buying?

Yes. The fully featured GXT is available as a free 30-day trial. Start your trial.

Does GXT work with my existing GWT code?

Yes. GXT components interoperate with native GWT components, templates and the layout manager, so you can add GXT to an existing GWT app and adopt it screen by screen. Configure your GWT module to inherit com.sencha.gxt.ui.GXT to get started.

Which themes are included, and can I create my own?

GXT ships with four themes: Blue (the default), Gray, Neptune and Triton. To build your own, the Theme Builder takes a simple config file and generates a jar with all the appearances your app needs, using more than 350 configuration properties. Sencha Professional Services can also build a custom theme for you.

Does GXT support touch devices?

Yes. GXT 4 adds support for touch devices and modern browsers, so the same Java codebase serves desktop and tablet users.

We’re on GXT 2. Can you help us upgrade?

Yes. GXT 2 is no longer supported and doesn’t work with GWT 2.8.2 and later, Super Dev Mode, or touch devices. Sencha Professional Services offer upgrades from GXT 2 to GXT 4, a fast track to GXT development, and custom consulting. Contact Professional Services.

Where can I get help?

Considering GXT for your business?

Book a demo with a Sencha GXT expert to see how our performance, Sencha tooling and dedicated support services can help your organization build modern web apps faster.