[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] import org.eclipse.swt.widgets.*; is unresolved in a Java project in Eclipse 3.

May I ask, how to include ?in system manner? in Eclipse 3.3 Java projects,
in build path (or may by import packages): org.eclipse.swt and org.eclipse.swt.widgets
to compile and run Java aplication with only one class:


import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
public class LessonSWT {
	public static void main(String[] args) {
		Display display=new Display();
		Shell shell=new LessonSWT().open(display);
		while(!shell.isDisposed()){
			if(!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
	public Shell open(final Display display){
		Shell shell=new Shell(display);
		shell.setSize(100,100);
		shell.open();
		return shell;

	}
}

Thanks in advance!
Boris Starchev Theacher