Eclipse SWT Development Environment Building

Source: Internet
Author: User

Raw materials:

Eclipse

SWT point I download

Steps:

1. Download SWT in. zip format

2. Import Swt**.zip to eclipse,file-->import-->import and select the Existing Projects into workspace-- >select Archivie file-->finish

OK, it's almost done.

3. Testing

Create a new Java project

Set properties, Java Build path--Prject-->add-->swt-->ok

Create a new Java program

1 ImportOrg.eclipse.swt.widgets.Display;2 ImportOrg.eclipse.swt.widgets.Shell;3 4 /**5 * Hello world!6  *7  */8  Public classApp9 {Ten      Public Static voidMain (string[] args) One     { ADisplay display =NewDisplay (); -Shell Shell =NewShell (display); -Shell.settext ("Hello world!"); the Shell.open (); -          while(!shell.isdisposed ()) { -             if(!Display.readanddispatch ()) - display.sleep (); +         } - display.dispose (); +     } A}

Run

OK,SWT environment is completed. This may not be easy to use, next, using a plugin, drag the control directly into the panel

Reference official documents: https://www.eclipse.org/swt/eclipse.php

P.S still read the official website document.

Eclipse SWT Development Environment Building

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.