Quantcast
Channel: SWT – Java Code Geeks
Browsing all 9 articles
Browse latest View live

Integrating JavaFX 2.0 with Swing and SWT

One of the improvements in JavaFX with JavaFX 2.0 has been greater ease of interoperability with Swing and SWT. Several online resources document how this is done. These include Integrating JavaFX into...

View Article



RichText editor component for SWT based applications

This article will go through the task of implementing our own RichText editor component with SWT. I faced the need for such a visual component when developing a desktop based application for one of my...

View Article

Responsive UIs with Eclipse and SWT

Recently I had the problem that my ‘well-conceived’ view design did not scale down reasonably. I realized that the flexibility to arrange viewparts in stacks of arbitrary sizes in an Eclipse workbench...

View Article

Clean SWT Listener Notifcations with SWTEventHelper

Writing tests for SWT based UIs often requires to notify widget listeners programmatically. Unfortunately the code to create, initialize and finally to trigger the event is a bit verbose and distracts...

View Article

How to Safely Use SWT’s Display asyncExec

Most user interface (UI) toolkits are single-threaded and SWT is no exception. This means that UI objects must be accessed exclusively from a single thread, the so-called UI thread. On the other hand,...

View Article


SWT Mouse Click Implementation

Doing a bit of SWT custom widget development lately, I stumbled across the question why is there no such thing as a default SWT mouse click listener? As this subject raises once in a while, I thought...

View Article

Sacrilege – a Custom SWT Scrollbar

SWT is a thin abstraction layer on top of native OS widgets. Which is a very good thing if you intent that your applications integrate well with the OS look and feel. But as a trade-off this approach...

View Article

SWT Look and Feel: Customize FlatScrollBar Color and More

Recently I introduced a custom slider control useful for improving the SWT look and feel of more subtle view layouts. Happily it seems the widget already found early adopters outside of the Code Affine...

View Article


SWT ScrolledComposite Explained

Like a friend of mine once put it, SWTs ScrolledComposite is a nasty beast. And to some point I do agree. This is likely the reason why there are so many questions asked about how to use this widget....

View Article

Browsing all 9 articles
Browse latest View live




Latest Images