The SWT Class-Constants and Methods : SWT Basics « SWT « Java Tutorial






The SWT class contains a repository of class-level constants and methods to simplify SWT programming.

import org.eclipse.swt.SWT;

public class UsingSWTGettingPaltFormVersion {

  public static void main(String[] args) {

    System.out.println(SWT.getPlatform());

    System.out.println(SWT.getVersion());

  }

}
win32
3138








17.1.SWT Basics
17.1.1.Two simple rules to guide your disposal efforts
17.1.2.Operating System Resources
17.1.3.The SWT Class-Constants and Methods
17.1.4.Coding Your First SWT Program: Hello WorldCoding Your First SWT Program: Hello World
17.1.5.SWT useful utilities