It's written in front of you.
Finally decided to raise the pen to write an article about SWT and jface programming. Before I begin, I'd like to introduce you to what you can get from this series of articles that will appear, and more importantly, what you can't get. Our time is so important that it is hard for us to tolerate wasting it on things we don't care about.
Because I have just started to write, so the article will be divided into several releases, it is difficult to say. But I have such an outline in mind. In other words, I intend to introduce the following:
• Set the development environment for SWT and JFace
Introduction to some simple widgets (widgets) of SWT
· Some introductory introductions to JFace
Event patterns for SWT and JFace
• Use some simple examples to illustrate how to write graphical applications using SWT and JFace
I would also like to explain the information you cannot get from this article, which includes:
SWT and JFace are very in-depth introduction: As you learned from the topic, this article is positioned as "getting Started", which means that the hypothetical reader is someone who has little knowledge of SWT and jface development. So I'm not going to make an in-depth introduction. Because I believe that after getting started, they will be able to find better information (besides, I might write another series of articles to introduce).
Use of eclipse: I assume that you've learned about eclipse when you read this article, so you won't explain how eclipse is used.
Eclipse Plugin Development: Although the Eclipse plug-in development and the content of this article is inextricably linked, I decided to still not be included in the content. In this respect, you can still find quite a lot of information for your reference.
Extended Reading
Don't you know what eclipse is? You can open http://www.eclipse.org, which is the official site of Eclipse.
If you want to have a detailed understanding of ECLIPSE functionality, you can read the book contributing to ECLIPSE.
Don't you know what a swt/jface is? You can look at the Wikipedia introduction: HTTP://EN.WIKIPEDIA.ORG/WIKI/SWT
Http://en.wikipedia.org/wiki/Eclipse_%28computing%29
Finally you can get everything you want from one place: http://www.google.com
The introduction ends here, I start with the text:
hello,world!: Build a swt/jface development environment
As I mentioned earlier, we assume you have some understanding of eclipse development. So in this section, I'll demonstrate how to build a swt/jface development environment and use an old hello,world! program as a demonstration.
Establish a development environment
Instead of using eclipse, you can use other Ides for development, but you need some library files with Swt/jface.
In order to be able to carry out normal swt/jface development, you need to do the following work:
The first step: Create a Java project: Because this is very familiar to everyone, so don't repeat, you can build a Java project of any name.
Step two: Import SWT and JFace library files. This means that the Swt/jface-related library files are imported into the engineering classpath.
What are the required library files? To open the Plugins folder under the Eclipse installation directory, we need to locate the following jar file:
Org.eclipse.swt_3.x.x.jar
Org.eclipse.jface_3.x.x.jar
Org.eclipse.core.runtime_3.x.x.jar
Org.eclipse.ui.workbench_3.x.x.jar