Skip to content

Standard Widget Toolkit

표준 위젯 툴킷(SWT, Standard Widget Toolkit)은 이클립스에서 사용하고 있는 자바기반의 위젯 툴킷(Widget Toolkit)이다. 처음에 이 툴킷은 IBM이 개발되었으나 지금은 이클립스를 개발하는 이클립스 재단(Eclipse Foundation)이 유지 보수하고 있다. 이 툴킷은 이클립스 공중 사용 허가서(Eclipse Public License)에 따라 배포되고 있다.

SWT Packages

Template:org.eclipse.swt

SWT constants and error handling support.

Template:org.eclipse.swt.accessibility

SWT Accessibility.

Template:org.eclipse.swt.awt

SWT AWT embedding support.

Template:org.eclipse.swt.browser

SWT Browser widget.

Template:org.eclipse.swt.custom

SWT Custom widgets.

Template:org.eclipse.swt.dnd

SWT Drag and Drop support.

Template:org.eclipse.swt.events

SWT typed listener support.

Template:org.eclipse.swt.graphics

SWT graphics classes.

Template:org.eclipse.swt.layout

SWT layout classes.

Template:org.eclipse.swt.ole.win32

SWT Win32 OLE implementation classes.

Template:org.eclipse.swt.opengl

SWT OpenGL support.

Template:org.eclipse.swt.printing

SWT Printing support classes.

Template:org.eclipse.swt.program

SWT Program support class.

Template:org.eclipse.swt.widgets

SWT widget public API classes.

SWT Tutorial Index

Troubleshooting

SWT와 관련된 문제점 해결방법을 정리한다.

SWTException: Invalid thread access

안드로이드와 같이 UI갱신을 위해서 UI스레드에서 접근해야 한다. 그렇지 않으면 아래와 같은 메세지가 출력된다.

org.eclipse.swt.SWTException: Invalid thread access

이 현상을 해결하기 위해선 아래와 같이 갱신코드를 적용해야 한다.

Display.getDefault().asyncExec(new Runnable() {
    @Override
    public void run() {
        // update...
    }
});

Libraries

  • KTable: KTable is a custom SWT table widget that provides a flexible grid of cells to display data.
  • Agile Grid: Agile grid is a complete new implementation of custom table for Java SWT applications, which uses the structure and some code fragments from the JFace table viewer.
  • swtgraph: The SWT Graph project is a collection of custom-draw canvas developed to solve some user interface aspects when you need to represent advanced data interactively.
  • NatTable: NatTable is a custom table/grid widget which based on the SWT library.
  • RCP Toolbox: A UI input validation framework; lightweight yet powerful. A number of custom widgets, composites and other helpful classes to be used when developing Eclipse SWT, JFace or RCP applications.
  • Nebula Project: Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI-Applications built using SWT, JFace and RAP.
  • PFGrid-Toolkit SWT: Empower your UI with our Winforms and SWT controls!

Favorite site

Guide

Tutorial

References


  1. Native_2d_rendering_in_an_eclipse_view_using_opengl.pdf 

  2. Eclipse_Corner_Article_-_Understanding_Layouts_in_SWT.pdf 

  3. Creating_Your_Own_Widgets_using_SWT.pdf 

  4. Wiki-eclipse-swt-event-process.pdf 

  5. SWT_-_Tutorial.pdf